瀏覽代碼

feat(vpn): ensure nat upon OpenVPN process restart

Fixes #25.
Mustafa Arici 8 年之前
父節點
當前提交
f68645f510
共有 1 個文件被更改,包括 1 次插入0 次删除
  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.