1
0
Fork 0
mirror of https://github.com/M66B/NetGuard.git synced 2024-12-22 07:43:15 +00:00

Revert "Exclude multicast addresses"

This reverts commit 63ba4b271c.
This commit is contained in:
M66B 2020-06-27 09:16:14 +02:00
parent 1cc58d0eb0
commit 4845337b3f

View file

@ -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;