summaryrefslogtreecommitdiffhomepage
path: root/ios
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2022-03-21 15:54:42 +0100
committerAndrej Mihajlov <and@mullvad.net>2022-03-24 14:00:24 +0100
commit2ac5e451676489faa39b72b0de90873648ea6a2c (patch)
tree1dd5c530a9dba3ad08ae2f036dffee22fad43630 /ios
parent8058f8fc38f0ce34c39bca2d6fc146ac085d5eca (diff)
downloadmullvadvpn-2ac5e451676489faa39b72b0de90873648ea6a2c.tar.xz
mullvadvpn-2ac5e451676489faa39b72b0de90873648ea6a2c.zip
Simulator: fix PacketTunnelStatus initialization
Diffstat (limited to 'ios')
-rw-r--r--ios/MullvadVPN/SimulatorTunnelProviderHost.swift4
1 files changed, 2 insertions, 2 deletions
diff --git a/ios/MullvadVPN/SimulatorTunnelProviderHost.swift b/ios/MullvadVPN/SimulatorTunnelProviderHost.swift
index 7305dbe0f2..878d9460d1 100644
--- a/ios/MullvadVPN/SimulatorTunnelProviderHost.swift
+++ b/ios/MullvadVPN/SimulatorTunnelProviderHost.swift
@@ -14,7 +14,7 @@ import Logging
class SimulatorTunnelProviderHost: SimulatorTunnelProviderDelegate {
- private var tunnelStatus = PacketTunnelStatus()
+ private var tunnelStatus = PacketTunnelStatus(isNetworkReachable: true, connectingDate: nil, tunnelRelay: nil)
private let providerLogger = Logger(label: "SimulatorTunnelProviderHost")
private let stateQueue = DispatchQueue(label: "SimulatorTunnelProviderHostQueue")
@@ -42,7 +42,7 @@ class SimulatorTunnelProviderHost: SimulatorTunnelProviderDelegate {
override func stopTunnel(with reason: NEProviderStopReason, completionHandler: @escaping () -> Void) {
stateQueue.async {
- self.tunnelStatus = PacketTunnelStatus()
+ self.tunnelStatus = PacketTunnelStatus(isNetworkReachable: true, connectingDate: nil, tunnelRelay: nil)
completionHandler()
}