diff options
author | cyBerta <cyberta@riseup.net> | 2021-11-25 12:23:04 +0100 |
---|---|---|
committer | cyBerta <cyberta@riseup.net> | 2021-11-25 12:23:04 +0100 |
commit | 0ccec2d3bd7c7f890f7b651110ea10a8933eab29 (patch) | |
tree | 6809b31be22162523a187ad65b2d18048b7e2e0f /app/src/main/java/se/leap/bitmaskclient/eip/Gateway.java | |
parent | dcee5f2fa1dc67e5b08223db3441da8bd38e8b20 (diff) |
implement UI, logic and test for prefer UDP preferences
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; |