summaryrefslogtreecommitdiffhomepage
path: root/android/src
diff options
context:
space:
mode:
authorMarkus Pettersson <markus.pettersson@mullvad.net>2023-05-24 16:27:29 +0200
committerMarkus Pettersson <markus.pettersson@mullvad.net>2023-05-26 15:47:36 +0200
commit2810d26feb8d48b28b0a77d57dc4e835f1143bae (patch)
treebdeebf8edc38f5030a89cd576dd66461106d6dfe /android/src
parent27a3a819d6d659c796aa92ce4192c56480384a2f (diff)
downloadmullvadvpn-2810d26feb8d48b28b0a77d57dc4e835f1143bae.tar.xz
mullvadvpn-2810d26feb8d48b28b0a77d57dc4e835f1143bae.zip
Allow dev builds to override location checking endpoint
If `mullvad-daemon` was built with the `api-override` feature flag, the new environment variable `MULLVAD_CONNCHECK_HOST` may be used to supply a different hostname for the location checking endpoint than the standard `am.i.mullvad.net`. It is equivalent to replacing `curl https://ipv4.am.i.mullvad.net/json` with `curl https://ipv4.{$MULLVAD_LOCATION_HOST}/json` Note that this change applies to both IPv4 and IPv6 endpoints. Log warning if `MULLVAD_CONNCHECK_HOST` is used in release builds. The variable will have no effect if `mullvad-daemon` was built in release mode, but it is good to let the user know this if he/she thinks otherwise.
Diffstat (limited to 'android/src')
0 files changed, 0 insertions, 0 deletions