summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcyBerta <cyberta@riseup.net>2023-04-13 14:37:45 +0200
committercyBerta <cyberta@riseup.net>2023-04-13 16:47:13 +0200
commit649e6487fb045ab8df0144579f74ab7123e2cbc6 (patch)
treea516d47aa4c3b7941b7a4ab48944a32c57c2abb6
parent9e7317c9e8323c0a97bca05548928ab0a5f0900d (diff)
improve sanity check for obfs4 pts defined in eip-service.json
-rw-r--r--app/src/main/java/se/leap/bitmaskclient/eip/VpnConfigGenerator.java2
1 files changed, 1 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 d32d1a71..4d90798d 100644
--- a/app/src/main/java/se/leap/bitmaskclient/eip/VpnConfigGenerator.java
+++ b/app/src/main/java/se/leap/bitmaskclient/eip/VpnConfigGenerator.java
@@ -366,7 +366,7 @@ public class VpnConfigGenerator {
}
TransportType transportType = transport.getTransportType();
- if (transportType == OBFS4 && transport.getPorts() == null) {
+ if (transportType == OBFS4 && (transport.getPorts() == null || transport.getPorts().length == 0)) {
VpnStatus.logError("Misconfigured provider: no ports defined in " + transport.getType() + " transport JSON for gateway " + ipAddress);
return;
}