Skip to content
Snippets Groups Projects
Commit f59a9ee4 authored by cyberta's avatar cyberta
Browse files

RiseupVPN: default to udp on fresh installs

parent 9d64ea1f
Branches
No related tags found
No related merge requests found
......@@ -52,6 +52,8 @@ android {
buildConfigField "String", "obfsvpn_ip", '""'
buildConfigField "String", "obfsvpn_cert", '""'
buildConfigField 'boolean', 'obfsvpn_use_kcp', 'false'
// default to UDP usage
buildConfigField 'boolean', 'prefer_udp', 'false'
// static update url pointing to the latest stable release apk
buildConfigField "String", "update_apk_url", '"https://dl.bitmask.net/client/android/Bitmask-Android-latest.apk"'
......@@ -155,6 +157,8 @@ android {
buildConfigField "String", "obfsvpn_ip", '"159.223.173.205"'
buildConfigField "String", "obfsvpn_cert", '"8nuAbPJwFrKc/29KcCfL5LBuEWxQrjBASYXdUbwcm9d9pKseGK4r2Tg47e23+t6WghxGGw"'
buildConfigField 'boolean', 'obfsvpn_use_kcp', 'true'
// default to UDP usage
buildConfigField 'boolean', 'prefer_udp', 'true'
//Build Config Fields for automatic apk update checks
......
......@@ -50,6 +50,7 @@ import java.util.HashSet;
import java.util.Set;
import de.blinkt.openvpn.VpnProfile;
import se.leap.bitmaskclient.BuildConfig;
import se.leap.bitmaskclient.base.models.Provider;
import se.leap.bitmaskclient.tor.TorStatusObservable;
......@@ -220,7 +221,7 @@ public class PreferenceHelper {
}
public static boolean getPreferUDP(Context context) {
return getBoolean(context, PREFER_UDP, false);
return getBoolean(context, PREFER_UDP, BuildConfig.prefer_udp);
}
public static void preferUDP(Context context, boolean prefer) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment