Change interface and add log message

This commit is contained in:
Owen
2026-06-30 18:16:00 -04:00
parent 8236cb420f
commit 880ea06dca
2 changed files with 3 additions and 1 deletions

View File

@@ -213,7 +213,8 @@ func loadNewtConfig() newtpkg.Config {
flag.BoolVar(&cfg.UseNativeMainInterface, "native-main", false, "Use native WireGuard interface for the main tunnel (instead of netstack)")
}
if cfg.NativeMainInterfaceName == "" {
flag.StringVar(&cfg.NativeMainInterfaceName, "interface-main", "newtm", "Name of the native main tunnel WireGuard interface (used with --native-main)")
// makeing this the same as above should prevent them from running together
flag.StringVar(&cfg.NativeMainInterfaceName, "interface-main", "newt", "Name of the native main tunnel WireGuard interface (used with --native-main)")
}
if disableClientsEnv == "" {
flag.BoolVar(&cfg.DisableClients, "disable-clients", false, "Disable clients on the WireGuard interface")

View File

@@ -352,6 +352,7 @@ persistent_keepalive_interval=5`, util.FixKey(n.privateKey.String()), util.FixKe
})
n.client.RegisterHandler("newt/wg/restart", func(msg websocket.WSMessage) {
logger.Info("Received restart message")
n.closeWgTunnel()
n.closeClients()
if n.healthMonitor != nil {