Maint: OpenVPN option: remove all ping-* options
- Use the built-in healthcheck vpn restart mechanism instead - Restarting with `ping-restart` or `ping-exit` would only restart with the same `remote` connection - Specify `ping` options as VPN specific to ensure the server doesn't disconnect us
This commit is contained in:
@@ -29,11 +29,10 @@ func (t *Torguard) BuildConf(connection models.Connection,
|
||||
"dev " + settings.Interface,
|
||||
"nobind",
|
||||
"remote-cert-tls server",
|
||||
"ping 5",
|
||||
"ping-restart 30",
|
||||
"tls-exit",
|
||||
|
||||
// Torguard specific
|
||||
"ping 5",
|
||||
"tun-mtu-extra 32",
|
||||
"mssfix " + strconv.Itoa(int(settings.MSSFix)),
|
||||
"reneg-sec 0",
|
||||
|
||||
Reference in New Issue
Block a user