diff options
| author | Bug Magnet <marco.nikic@mullvad.net> | 2024-10-14 15:28:50 +0200 |
|---|---|---|
| committer | Bug Magnet <marco.nikic@mullvad.net> | 2024-10-14 15:28:52 +0200 |
| commit | 2cdf896f101e0179dca78146d2ccd935e4591135 (patch) | |
| tree | d09853d96987d04617f9be1c05bd8d1701517e13 /ios/MullvadVPN | |
| parent | 12ccbe386fc41f0bca6b047434cbd9483953cc8d (diff) | |
| download | mullvadvpn-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.swift | 2 | ||||
| -rw-r--r-- | ios/MullvadVPN/SceneDelegate.swift | 2 |
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 ) ), |
