mirror of
https://github.com/M66B/NetGuard.git
synced 2024-12-22 07:43:15 +00:00
parent
1cc58d0eb0
commit
4845337b3f
1 changed files with 1 additions and 3 deletions
|
@ -1367,7 +1367,7 @@ public class ServiceSinkhole extends VpnService implements SharedPreferences.OnS
|
|||
start = IPUtil.plus1(exclude.getEnd());
|
||||
}
|
||||
String end = (lan ? "255.255.255.254" : "255.255.255.255");
|
||||
for (IPUtil.CIDR include : IPUtil.toCIDR("240.0.0.0", end))
|
||||
for (IPUtil.CIDR include : IPUtil.toCIDR("224.0.0.0", end))
|
||||
try {
|
||||
builder.addRoute(include.address, include.prefix);
|
||||
} catch (Throwable ex) {
|
||||
|
@ -3069,7 +3069,6 @@ public class ServiceSinkhole extends VpnService implements SharedPreferences.OnS
|
|||
|
||||
@Override
|
||||
public Builder addRoute(String address, int prefixLength) {
|
||||
Log.i(TAG, "Add route=" + address + "/" + prefixLength);
|
||||
listRoute.add(address + "/" + prefixLength);
|
||||
super.addRoute(address, prefixLength);
|
||||
return this;
|
||||
|
@ -3077,7 +3076,6 @@ public class ServiceSinkhole extends VpnService implements SharedPreferences.OnS
|
|||
|
||||
@Override
|
||||
public Builder addRoute(InetAddress address, int prefixLength) {
|
||||
Log.i(TAG, "Add route=" + address.getHostAddress() + "/" + prefixLength);
|
||||
listRoute.add(address.getHostAddress() + "/" + prefixLength);
|
||||
super.addRoute(address, prefixLength);
|
||||
return this;
|
||||
|
|
Loading…
Reference in a new issue