mirror of
https://github.com/fosrl/newt.git
synced 2026-08-31 11:11:28 +02:00
Change interface and add log message
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user