aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-06-10 18:47:39 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-06-10 18:47:39 +0200
commit996af4b97de85c17b7157dd5610830536c4e3e29 (patch)
treec40572668f010078b44e68ae12daaaf4344df22d
parenton-demand: iOS: Fix crash on selecting Any SSID when already selected (diff)
downloadwireguard-apple-996af4b97de85c17b7157dd5610830536c4e3e29.tar.xz
wireguard-apple-996af4b97de85c17b7157dd5610830536c4e3e29.zip
TunnelProvider: remove all cleverness
This will cause more socket flaps than necessary but hopefully will fix some bugs.
-rw-r--r--WireGuard/WireGuardNetworkExtension/PacketTunnelProvider.swift6
1 files changed, 1 insertions, 5 deletions
diff --git a/WireGuard/WireGuardNetworkExtension/PacketTunnelProvider.swift b/WireGuard/WireGuardNetworkExtension/PacketTunnelProvider.swift
index 2ecd610..f8d87d7 100644
--- a/WireGuard/WireGuardNetworkExtension/PacketTunnelProvider.swift
+++ b/WireGuard/WireGuardNetworkExtension/PacketTunnelProvider.swift
@@ -11,7 +11,6 @@ class PacketTunnelProvider: NEPacketTunnelProvider {
private var handle: Int32?
private var networkMonitor: NWPathMonitor?
private var ifname: String?
- private var lastPath: Network.NWPath?
private var packetTunnelSettingsGenerator: PacketTunnelSettingsGenerator?
deinit {
@@ -150,10 +149,7 @@ class PacketTunnelProvider: NEPacketTunnelProvider {
_ = packetTunnelSettingsGenerator.endpointUapiConfiguration().withGoString { return wgSetConfig(handle, $0) }
}
#endif
- if path != lastPath {
- lastPath = path
- wgBumpSockets(handle)
- }
+ wgBumpSockets(handle)
}
}