Do not set MTU if none available or zero.
This commit is contained in:
parent
7e2e65f160
commit
ec4bc66094
|
@ -53,7 +53,7 @@ class PacketTunnelProvider: NEPacketTunnelProvider {
|
|||
let dnsSettings = NEDNSSettings(servers: splitDnsEntries)
|
||||
newSettings.dnsSettings = dnsSettings
|
||||
}
|
||||
if let mtu = mtu {
|
||||
if let mtu = mtu, mtu.intValue > 0 {
|
||||
newSettings.mtu = mtu
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue