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,15 +29,14 @@ func (s *Surfshark) BuildConf(connection models.Connection,
|
||||
"dev " + settings.Interface,
|
||||
"nobind",
|
||||
"remote-cert-tls server",
|
||||
"ping 15",
|
||||
"tls-exit",
|
||||
|
||||
// Surfshark specific
|
||||
"ping 15",
|
||||
"tun-mtu-extra 32",
|
||||
"mssfix " + strconv.Itoa(int(settings.MSSFix)),
|
||||
"reneg-sec 0",
|
||||
"key-direction 1",
|
||||
"ping-restart 0",
|
||||
|
||||
// Added constant values
|
||||
"auth-nocache",
|
||||
|
||||
Reference in New Issue
Block a user