summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormojganii <mojgan.jelodar@codic.se>2025-02-05 10:00:09 +0100
committermojganii <mojgan.jelodar@codic.se>2025-02-07 10:41:53 +0100
commit2a6b430694a9a65fb9446008417fcd944da29a41 (patch)
treed32d89bb30b148f9e132e901d7f6b9672f4716f6
parent7251f29a66ed7f25b7a0184d4e7bf0e3d7bfef84 (diff)
downloadmullvadvpn-add-exclude-device-communication-to-vpn-ios-1047.tar.xz
mullvadvpn-add-exclude-device-communication-to-vpn-ios-1047.zip
Add flag for debugging VPN with Local network sharingadd-exclude-device-communication-to-vpn-ios-1047
-rw-r--r--ios/MullvadVPN/TunnelManager/StartTunnelOperation.swift6
1 files changed, 6 insertions, 0 deletions
diff --git a/ios/MullvadVPN/TunnelManager/StartTunnelOperation.swift b/ios/MullvadVPN/TunnelManager/StartTunnelOperation.swift
index 6c2b97ac06..82e3300513 100644
--- a/ios/MullvadVPN/TunnelManager/StartTunnelOperation.swift
+++ b/ios/MullvadVPN/TunnelManager/StartTunnelOperation.swift
@@ -119,6 +119,12 @@ class StartTunnelOperation: ResultOperation<Void>, @unchecked Sendable {
protocolConfig.providerBundleIdentifier = ApplicationTarget.packetTunnel.bundleIdentifier
protocolConfig.serverAddress = ""
+ #if DEBUG
+ if #available(iOS 17.4, *) {
+ protocolConfig.excludeDeviceCommunication = true
+ }
+ #endif
+
let alwaysOnRule = NEOnDemandRuleConnect()
alwaysOnRule.interfaceTypeMatch = .any