From 6a29e1942176f96c81508acb1e50496c56f756c0 Mon Sep 17 00:00:00 2001 From: Albin Date: Mon, 27 Nov 2023 17:11:20 +0100 Subject: [PATCH] Enable forced direct connection for devmole and stagemole builds This commit enables forced API direct connection as well as disables API address caching to improve testing against the devmole and stagemole environments. --- .../mullvadvpn/lib/endpoint/CustomApiEndpointConfiguration.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/android/lib/endpoint/src/main/kotlin/net/mullvad/mullvadvpn/lib/endpoint/CustomApiEndpointConfiguration.kt b/android/lib/endpoint/src/main/kotlin/net/mullvad/mullvadvpn/lib/endpoint/CustomApiEndpointConfiguration.kt index 9d2ba2420f36..5790f8c73f06 100644 --- a/android/lib/endpoint/src/main/kotlin/net/mullvad/mullvadvpn/lib/endpoint/CustomApiEndpointConfiguration.kt +++ b/android/lib/endpoint/src/main/kotlin/net/mullvad/mullvadvpn/lib/endpoint/CustomApiEndpointConfiguration.kt @@ -9,9 +9,9 @@ const val CUSTOM_ENDPOINT_HTTPS_PORT = 443 data class CustomApiEndpointConfiguration( val hostname: String, val port: Int, - val disableAddressCache: Boolean = false, + val disableAddressCache: Boolean = true, val disableTls: Boolean = false, - val forceDirectConnection: Boolean = false + val forceDirectConnection: Boolean = true ) : ApiEndpointConfiguration { override fun apiEndpoint() = ApiEndpoint(