Browse Source

feat(vpn): ensure nat upon OpenVPN process restart

Fixes #25.
Mustafa Arici 8 years ago
parent
commit
f68645f510
1 changed files with 1 additions and 0 deletions
  1. 1 0
      vpn.go

+ 1 - 0
vpn.go

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