summaryrefslogtreecommitdiff
path: root/app/src/main/java/se
diff options
context:
space:
mode:
authorcyBerta <cyberta@riseup.net>2023-04-12 09:46:45 +0200
committercyBerta <cyberta@riseup.net>2023-04-13 16:47:13 +0200
commit6aafd792efa3501dfe5e203c7587cd7089df888a (patch)
tree2dc4b4cd7a219bb8debc515c33cce3e109aba87f /app/src/main/java/se
parentb006afb5e4410644a5050602cd37400ce2edb6b2 (diff)
fix sanity checks for the case of decoupled bridges
Diffstat (limited to 'app/src/main/java/se')
-rw-r--r--app/src/main/java/se/leap/bitmaskclient/eip/VpnConfigGenerator.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/eip/VpnConfigGenerator.java b/app/src/main/java/se/leap/bitmaskclient/eip/VpnConfigGenerator.java
index 7229f7ff..853082be 100644
--- a/app/src/main/java/se/leap/bitmaskclient/eip/VpnConfigGenerator.java
+++ b/app/src/main/java/se/leap/bitmaskclient/eip/VpnConfigGenerator.java
@@ -418,7 +418,9 @@ public class VpnConfigGenerator {
}
Transport openvpnTransport = transports.get(OPENVPN);
if (openvpnTransport == null) {
- return false;
+ // the bridge seems to be to be decoupled from the gateway, we can't say if the openvpn gateway
+ // will support this PT and hope the admins configured the gateway correctly
+ return true;
}
String[] protocols = openvpnTransport.getProtocols();