summaryrefslogtreecommitdiffhomepage
path: root/android/service/src
diff options
context:
space:
mode:
authorDavid Göransson <david.goransson@mullvad.net>2025-05-21 11:17:25 +0200
committerDavid Göransson <david.goransson@mullvad.net>2025-05-21 12:42:25 +0200
commit7e7d6734b1c53dcc26774aebca60e5c09201152b (patch)
tree61ea9b4516348eb12120d33d11b851473da9e88e /android/service/src
parentb708e86feb1235a6241cd12e1b8315cea19a12d5 (diff)
downloadmullvadvpn-7e7d6734b1c53dcc26774aebca60e5c09201152b.tar.xz
mullvadvpn-7e7d6734b1c53dcc26774aebca60e5c09201152b.zip
Supply IP address when using API override
Previously we did a DNS lookup for Stagemole and Devmole however, this causes problem when starting the app with no internet and is different from how the app performs in production mode. This commit removes that logic in order to align closer to what we expect in prod.
Diffstat (limited to 'android/service/src')
-rw-r--r--android/service/src/main/kotlin/net/mullvad/mullvadvpn/service/di/VpnServiceModule.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/android/service/src/main/kotlin/net/mullvad/mullvadvpn/service/di/VpnServiceModule.kt b/android/service/src/main/kotlin/net/mullvad/mullvadvpn/service/di/VpnServiceModule.kt
index 9d4636cf07..c33b8ef518 100644
--- a/android/service/src/main/kotlin/net/mullvad/mullvadvpn/service/di/VpnServiceModule.kt
+++ b/android/service/src/main/kotlin/net/mullvad/mullvadvpn/service/di/VpnServiceModule.kt
@@ -63,7 +63,7 @@ val vpnServiceModule = module {
cacheDir = get(named(CACHE_DIR_NAMED_ARGUMENT)),
apiEndpointOverride =
if (BuildConfig.FLAVOR_infrastructure != "prod") {
- ApiEndpointOverride(BuildConfig.API_ENDPOINT)
+ ApiEndpointOverride(BuildConfig.API_ENDPOINT, BuildConfig.API_IP)
} else {
null
},