diff options
author | cyBerta <cyberta@riseup.net> | 2022-08-05 13:18:44 +0200 |
---|---|---|
committer | cyBerta <cyberta@riseup.net> | 2022-08-05 13:18:44 +0200 |
commit | 66d9dd4b2b46ed98e811c31152b2d04e3ccbe771 (patch) | |
tree | ef49b4030cbaca777df26ed9bb450706f83487bd /app/src/main/java/se/leap | |
parent | dc8e8507e88834d76776f087753064bada874f93 (diff) |
adapt the route to point to the obfuscation proxy instead of the openvpn gateway
Diffstat (limited to 'app/src/main/java/se/leap')
-rw-r--r-- | app/src/main/java/se/leap/bitmaskclient/eip/VpnConfigGenerator.java | 3 |
1 files changed, 2 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 a7df99bf..9cc16902 100644 --- a/app/src/main/java/se/leap/bitmaskclient/eip/VpnConfigGenerator.java +++ b/app/src/main/java/se/leap/bitmaskclient/eip/VpnConfigGenerator.java @@ -455,17 +455,18 @@ public class VpnConfigGenerator { } String route = "route " + ipAddress + " 255.255.255.255 net_gateway" + newLine; - stringBuilder.append(route); String remote; if (useObfsVpn()) { if (useObfuscationPinning) { remote = REMOTE + " " + obfuscationPinningIP + " " + obfuscationPinningPort + newLine; + route = "route " + obfuscationPinningIP + " 255.255.255.255 net_gateway" + newLine; } else { remote = REMOTE + " " + ipAddress + " " + ports.getString(0) + newLine; } } else { remote = REMOTE + " " + DISPATCHER_IP + " " + DISPATCHER_PORT + " tcp" + newLine; } + stringBuilder.append(route); stringBuilder.append(remote); } |