mirror of
https://github.com/M66B/NetGuard.git
synced 2025-01-04 06:23:04 +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
|
// Build VPN service
|
||||||
final Builder builder = new Builder();
|
final Builder builder = new Builder();
|
||||||
builder.setSession(getString(R.string.app_name) + " session");
|
builder.setSession(getString(R.string.app_name));
|
||||||
|
|
||||||
// VPN address
|
// VPN address
|
||||||
Log.i(TAG, "vpn4=" + last_vpn4 + " vpn6=" + last_vpn6);
|
Log.i(TAG, "vpn4=" + last_vpn4 + " vpn6=" + last_vpn6);
|
||||||
|
@ -794,6 +794,7 @@ public class SinkholeService extends VpnService implements SharedPreferences.OnS
|
||||||
|
|
||||||
if (filter)
|
if (filter)
|
||||||
builder.addDnsServer(last_dns);
|
builder.addDnsServer(last_dns);
|
||||||
|
// TODO addSearchDomain
|
||||||
|
|
||||||
if (tethering) {
|
if (tethering) {
|
||||||
// USB Tethering 192.168.42.x
|
// 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);
|
builder.addRoute("0:0:0:0:0:0:0:0", 0);
|
||||||
|
|
||||||
|
// In practice Android MSS is 8192 bytes
|
||||||
builder.setMtu(32768);
|
builder.setMtu(32768);
|
||||||
|
|
||||||
// Add list of allowed applications
|
// Add list of allowed applications
|
||||||
|
|
Loading…
Reference in a new issue