diff options
author | cyBerta <cyberta@riseup.net> | 2019-07-03 19:16:43 +0200 |
---|---|---|
committer | cyBerta <cyberta@riseup.net> | 2019-08-02 01:49:37 +0200 |
commit | 2a8bb775183dd08388460c711dc650d3110ca76c (patch) | |
tree | a0757b1f6eed1d8e16e6a8ab51256d5f8e1279c4 /app/src/main/java/se | |
parent | 63d1ccce6173445efba0028cc0fee1562e4540aa (diff) |
update method name for gateway configuration v3
Diffstat (limited to 'app/src/main/java/se')
-rw-r--r-- | app/src/main/java/se/leap/bitmaskclient/eip/VpnConfigGenerator.java | 12 |
1 files changed, 6 insertions, 6 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 2214b592..18c557dc 100644 --- a/app/src/main/java/se/leap/bitmaskclient/eip/VpnConfigGenerator.java +++ b/app/src/main/java/se/leap/bitmaskclient/eip/VpnConfigGenerator.java @@ -167,7 +167,7 @@ public class VpnConfigGenerator { break; case 3: JSONArray transports = capabilities.getJSONArray(TRANSPORT); - gatewayConfigApiv2(transportType, stringBuilder, ipAddress, transports); + gatewayConfigApiv3(transportType, stringBuilder, ipAddress, transports); break; } } catch (JSONException e) { @@ -182,11 +182,11 @@ public class VpnConfigGenerator { return remotes; } - private void gatewayConfigApiv2(Connection.TransportType transportType, StringBuilder stringBuilder, String ipAddress, JSONArray transports) throws JSONException { + private void gatewayConfigApiv3(Connection.TransportType transportType, StringBuilder stringBuilder, String ipAddress, JSONArray transports) throws JSONException { if (transportType == OBFS4) { - obfs4GatewayConfigApiv2(stringBuilder, ipAddress, transports); + obfs4GatewayConfigApiv3(stringBuilder, ipAddress, transports); } else { - ovpnGatewayConfigApi2(stringBuilder, ipAddress, transports); + ovpnGatewayConfigApi3(stringBuilder, ipAddress, transports); } } @@ -205,7 +205,7 @@ public class VpnConfigGenerator { } } - private void ovpnGatewayConfigApi2(StringBuilder stringBuilder, String ipAddress, JSONArray transports) throws JSONException { + private void ovpnGatewayConfigApi3(StringBuilder stringBuilder, String ipAddress, JSONArray transports) throws JSONException { String port; String protocol; JSONObject openvpnTransport = getTransport(transports, OPENVPN); @@ -233,7 +233,7 @@ public class VpnConfigGenerator { return selectedTransport; } - private void obfs4GatewayConfigApiv2(StringBuilder stringBuilder, String ipAddress, JSONArray transports) throws JSONException { + private void obfs4GatewayConfigApiv3(StringBuilder stringBuilder, String ipAddress, JSONArray transports) throws JSONException { JSONObject obfs4Transport = getTransport(transports, OBFS4); String route = "route " + ipAddress + " 255.255.255.255 net_gateway" + newLine; stringBuilder.append(route); |