mirror of
https://github.com/M66B/NetGuard.git
synced 2025-01-01 12:54:07 +00:00
Remarks
This commit is contained in:
parent
39cfeac239
commit
e78133d381
1 changed files with 3 additions and 1 deletions
|
@ -785,7 +785,7 @@ public class SinkholeService extends VpnService implements SharedPreferences.OnS
|
|||
|
||||
// Build VPN service
|
||||
final Builder builder = new Builder();
|
||||
builder.setSession(getString(R.string.app_name) + " session");
|
||||
builder.setSession(getString(R.string.app_name));
|
||||
|
||||
// VPN address
|
||||
Log.i(TAG, "vpn4=" + last_vpn4 + " vpn6=" + last_vpn6);
|
||||
|
@ -794,6 +794,7 @@ public class SinkholeService extends VpnService implements SharedPreferences.OnS
|
|||
|
||||
if (filter)
|
||||
builder.addDnsServer(last_dns);
|
||||
// TODO addSearchDomain
|
||||
|
||||
if (tethering) {
|
||||
// USB Tethering 192.168.42.x
|
||||
|
@ -815,6 +816,7 @@ public class SinkholeService extends VpnService implements SharedPreferences.OnS
|
|||
|
||||
builder.addRoute("0:0:0:0:0:0:0:0", 0);
|
||||
|
||||
// In practice Android MSS is 8192 bytes
|
||||
builder.setMtu(32768);
|
||||
|
||||
// Add list of allowed applications
|
||||
|
|
Loading…
Reference in a new issue