summaryrefslogtreecommitdiff
path: root/app/src/main/java/de
diff options
context:
space:
mode:
authorcyBerta <cyberta@riseup.net>2022-06-27 23:06:09 +0200
committercyBerta <cyberta@riseup.net>2022-07-19 00:03:57 +0200
commit5afdb3d3ed61efd547b3756e5c1c4f119e126500 (patch)
tree17e6ca73945645b3206b7ecb61c93a9eb9284803 /app/src/main/java/de
parent38e9d4afbd408b25d569e5c80cd0b288a28acd07 (diff)
allow to pin a custom obfs4 bridge during compile time
Diffstat (limited to 'app/src/main/java/de')
-rw-r--r--app/src/main/java/de/blinkt/openvpn/core/connection/Obfs4Connection.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/src/main/java/de/blinkt/openvpn/core/connection/Obfs4Connection.java b/app/src/main/java/de/blinkt/openvpn/core/connection/Obfs4Connection.java
index 393afd94..7cfe4988 100644
--- a/app/src/main/java/de/blinkt/openvpn/core/connection/Obfs4Connection.java
+++ b/app/src/main/java/de/blinkt/openvpn/core/connection/Obfs4Connection.java
@@ -19,20 +19,21 @@ public class Obfs4Connection extends Connection {
public Obfs4Connection(Obfs4Options options) {
if (BuildConfig.use_obfsvpn) {
- setUseUdp(options.udp);
setServerName(options.remoteIP);
setServerPort(options.remotePort);
setProxyName(ObfsVpnClient.SOCKS_IP);
setProxyPort(ObfsVpnClient.SOCKS_PORT);
setProxyType(ProxyType.SOCKS5);
} else {
- setUseUdp(false);
setServerName(DISPATCHER_IP);
setServerPort(DISPATCHER_PORT);
setProxyName("");
setProxyPort("");
setProxyType(ProxyType.NONE);
}
+ // while udp/kcp might be used on the wire,
+ // we don't use udp for openvpn in case of a obfs4 connection
+ setUseUdp(false);
setProxyAuthUser(null);
setProxyAuthPassword(null);
setUseProxyAuth(false);