Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Wade
DnsChanger
Commits
03bb7f30
Commit
03bb7f30
authored
Apr 16, 2018
by
Daniel Wolf
Browse files
Added a configure intent
parent
149c9bb3
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/src/main/java/com/frostnerd/dnschanger/threading/VPNRunnable.java
View file @
03bb7f30
package
com.frostnerd.dnschanger.threading
;
import
android.app.PendingIntent
;
import
android.content.Intent
;
import
android.content.pm.PackageManager
;
import
android.net.VpnService
;
...
...
@@ -13,6 +14,7 @@ import com.frostnerd.dnschanger.DNSChanger;
import
com.frostnerd.dnschanger.LogFactory
;
import
com.frostnerd.dnschanger.activities.BackgroundVpnConfigureActivity
;
import
com.frostnerd.dnschanger.activities.InvalidDNSDialogActivity
;
import
com.frostnerd.dnschanger.activities.MainActivity
;
import
com.frostnerd.dnschanger.database.entities.IPPortPair
;
import
com.frostnerd.dnschanger.services.DNSVpnService
;
import
com.frostnerd.dnschanger.util.PreferencesAccessor
;
...
...
@@ -215,6 +217,7 @@ public class VPNRunnable implements Runnable {
builder
.
setMtu
(
1500
);
}
else
builder
.
setMtu
(
1280
);
LogFactory
.
writeMessage
(
service
,
new
String
[]{
LOG_TAG
,
"[VPNTHREAD]"
,
ID
},
"Tunnel interface created, not yet connected"
);
builder
.
setConfigureIntent
(
PendingIntent
.
getActivity
(
service
,
1
,
new
Intent
(
service
,
MainActivity
.
class
),
PendingIntent
.
FLAG_CANCEL_CURRENT
));
}
private
void
addDNSServer
(
@NonNull
String
server
,
boolean
addRoute
,
boolean
ipv6
){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment