diff options
author | cyberta <cyberta@riseup.net> | 2021-11-25 13:00:01 +0000 |
---|---|---|
committer | cyberta <cyberta@riseup.net> | 2021-11-25 13:00:01 +0000 |
commit | 976843d09cc7455945bf42a3817445649fec7c05 (patch) | |
tree | 4a05965b62cdecae5e0630267adb09d51a13f667 /app/src/main/java/se/leap/bitmaskclient/eip/Gateway.java | |
parent | dcee5f2fa1dc67e5b08223db3441da8bd38e8b20 (diff) | |
parent | d939fc28aaa8f9992d296ddf596fa703ffd5ccb0 (diff) |
Merge branch 'UDP_ui' into 'master'
UDP UI
See merge request leap/bitmask_android!147
Diffstat (limited to 'app/src/main/java/se/leap/bitmaskclient/eip/Gateway.java')
-rw-r--r-- | app/src/main/java/se/leap/bitmaskclient/eip/Gateway.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/eip/Gateway.java b/app/src/main/java/se/leap/bitmaskclient/eip/Gateway.java index a3d3abbc..60507363 100644 --- a/app/src/main/java/se/leap/bitmaskclient/eip/Gateway.java +++ b/app/src/main/java/se/leap/bitmaskclient/eip/Gateway.java @@ -174,7 +174,8 @@ public class Gateway { */ private @NonNull HashMap<Connection.TransportType, VpnProfile> createVPNProfiles(Context context) throws ConfigParser.ConfigParseError, IOException, JSONException { - VpnConfigGenerator vpnConfigurationGenerator = new VpnConfigGenerator(generalConfiguration, secrets, gateway, apiVersion); + boolean preferUDP = PreferenceHelper.getPreferUDP(context); + VpnConfigGenerator vpnConfigurationGenerator = new VpnConfigGenerator(generalConfiguration, secrets, gateway, apiVersion, preferUDP); HashMap<Connection.TransportType, VpnProfile> profiles = vpnConfigurationGenerator.generateVpnProfiles(); addProfileInfos(context, profiles); return profiles; |