Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
bitmask_android
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Global localhost
bitmask_android
Commits
f59a9ee4
Commit
f59a9ee4
authored
2 years ago
by
cyberta
Browse files
Options
Downloads
Patches
Plain Diff
RiseupVPN: default to udp on fresh installs
parent
9d64ea1f
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/build.gradle
+4
-0
4 additions, 0 deletions
app/build.gradle
app/src/main/java/se/leap/bitmaskclient/base/utils/PreferenceHelper.java
+2
-1
2 additions, 1 deletion
...va/se/leap/bitmaskclient/base/utils/PreferenceHelper.java
with
6 additions
and
1 deletion
app/build.gradle
+
4
−
0
View file @
f59a9ee4
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
app/src/main/java/se/leap/bitmaskclient/base/utils/PreferenceHelper.java
+
2
−
1
View file @
f59a9ee4
...
...
@@ -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
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment