Make sure MTU is positive
This commit is contained in:
parent
bbdc21fd61
commit
4bfa0b4e74
|
@ -794,7 +794,7 @@ extension OpenVPNTunnelProvider: OpenVPNSessionDelegate {
|
|||
newSettings.ipv6Settings = ipv6Settings
|
||||
newSettings.dnsSettings = dnsSettings
|
||||
newSettings.proxySettings = proxySettings
|
||||
if let mtu = cfg.configuration.mtu {
|
||||
if let mtu = cfg.configuration.mtu, mtu > 0 {
|
||||
newSettings.mtu = NSNumber(value: mtu)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue