diff --git a/config.go b/config.go index e3e96a7..9d0ae5d 100644 --- a/config.go +++ b/config.go @@ -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") diff --git a/newt/handlers.go b/newt/handlers.go index a31bede..2aab9ea 100644 --- a/newt/handlers.go +++ b/newt/handlers.go @@ -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 {