Explorar o código

feat(vpn): ensure nat upon OpenVPN process restart

Fixes #25.
Mustafa Arici %!s(int64=8) %!d(string=hai) anos
pai
achega
f68645f510
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      vpn.go

+ 1 - 0
vpn.go

@@ -253,6 +253,7 @@ func RestartVPNProc() {
 		panic(fmt.Sprintf("vpnProc is not initialized!"))
 	}
 	vpnProc.Restart()
+	ensureNatEnabled()
 }
 
 // StopVPNProc stops the OpenVPN process.