summaryrefslogtreecommitdiffhomepage
path: root/ios/MullvadVPN
diff options
context:
space:
mode:
authorBug Magnet <marco.nikic@mullvad.net>2024-10-14 15:28:50 +0200
committerBug Magnet <marco.nikic@mullvad.net>2024-10-14 15:28:52 +0200
commit2cdf896f101e0179dca78146d2ccd935e4591135 (patch)
treed09853d96987d04617f9be1c05bd8d1701517e13 /ios/MullvadVPN
parent12ccbe386fc41f0bca6b047434cbd9483953cc8d (diff)
downloadmullvadvpn-2cdf896f101e0179dca78146d2ccd935e4591135.tar.xz
mullvadvpn-2cdf896f101e0179dca78146d2ccd935e4591135.zip
Check AddressCache as well when overriding hostname for SSL validation
Diffstat (limited to 'ios/MullvadVPN')
-rw-r--r--ios/MullvadVPN/AppDelegate.swift2
-rw-r--r--ios/MullvadVPN/SceneDelegate.swift2
2 files changed, 2 insertions, 2 deletions
diff --git a/ios/MullvadVPN/AppDelegate.swift b/ios/MullvadVPN/AppDelegate.swift
index 3086923923..5010f71ebd 100644
--- a/ios/MullvadVPN/AppDelegate.swift
+++ b/ios/MullvadVPN/AppDelegate.swift
@@ -110,7 +110,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
accountsProxy: accountsProxy,
transactionLog: .default
)
- let urlSessionTransport = URLSessionTransport(urlSession: REST.makeURLSession())
+ let urlSessionTransport = URLSessionTransport(urlSession: REST.makeURLSession(addressCache: addressCache))
let shadowsocksCache = ShadowsocksConfigurationCache(cacheDirectory: containerURL)
let shadowsocksRelaySelector = ShadowsocksRelaySelector(
relayCache: ipOverrideWrapper
diff --git a/ios/MullvadVPN/SceneDelegate.swift b/ios/MullvadVPN/SceneDelegate.swift
index 618555f5fe..a79e02745a 100644
--- a/ios/MullvadVPN/SceneDelegate.swift
+++ b/ios/MullvadVPN/SceneDelegate.swift
@@ -74,7 +74,7 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate, SettingsMigrationUIHand
accountsProxy: appDelegate.accountsProxy,
outgoingConnectionService: OutgoingConnectionService(
outgoingConnectionProxy: OutgoingConnectionProxy(
- urlSession: REST.makeURLSession(),
+ urlSession: REST.makeURLSession(addressCache: appDelegate.addressCache),
hostname: ApplicationConfiguration.hostName
)
),