diff options
author | cyBerta <cyberta@riseup.net> | 2022-05-19 12:49:14 +0200 |
---|---|---|
committer | cyBerta <cyberta@riseup.net> | 2022-05-19 12:49:14 +0200 |
commit | 122b0f9dcde45d4e1afe4d6cfaea6f0926141ea6 (patch) | |
tree | e6cc13e4af872252cd351c3c9b704629df0ce207 /app/src | |
parent | 37689ed545a9f6cce543c431e9de1948dafaf4cf (diff) |
ignore snowflake preferences for API communication if a VPN tunnel is already established
Diffstat (limited to 'app/src')
-rw-r--r-- | app/src/main/java/se/leap/bitmaskclient/providersetup/ProviderApiManagerBase.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/providersetup/ProviderApiManagerBase.java b/app/src/main/java/se/leap/bitmaskclient/providersetup/ProviderApiManagerBase.java index 4f1a2d5c..ecddb9c7 100644 --- a/app/src/main/java/se/leap/bitmaskclient/providersetup/ProviderApiManagerBase.java +++ b/app/src/main/java/se/leap/bitmaskclient/providersetup/ProviderApiManagerBase.java @@ -201,7 +201,7 @@ public abstract class ProviderApiManagerBase { } try { - if (PreferenceHelper.hasSnowflakePrefs(preferences)) { + if (PreferenceHelper.hasSnowflakePrefs(preferences) && !VpnStatus.isVPNActive()) { startTorProxy(); } } catch (InterruptedException | IllegalStateException e) { |