1
0
Fork 0
mirror of https://github.com/M66B/NetGuard.git synced 2025-03-07 12:24:27 +00:00

Add 0.0.0.0 subnets again

This commit is contained in:
M66B 2021-02-23 17:33:22 +01:00
parent d3168ce871
commit b2289c7764

View file

@ -1390,8 +1390,7 @@ public class ServiceSinkhole extends VpnService implements SharedPreferences.OnS
Log.i(TAG, "Exclude " + exclude.getStart().getHostAddress() + "..." + exclude.getEnd().getHostAddress()); Log.i(TAG, "Exclude " + exclude.getStart().getHostAddress() + "..." + exclude.getEnd().getHostAddress());
for (IPUtil.CIDR include : IPUtil.toCIDR(start, IPUtil.minus1(exclude.getStart()))) for (IPUtil.CIDR include : IPUtil.toCIDR(start, IPUtil.minus1(exclude.getStart())))
try { try {
if (!"0.0.0.0".equals(include.address.getHostAddress())) builder.addRoute(include.address, include.prefix);
builder.addRoute(include.address, include.prefix);
} catch (Throwable ex) { } catch (Throwable ex) {
Log.e(TAG, ex.toString() + "\n" + Log.getStackTraceString(ex)); Log.e(TAG, ex.toString() + "\n" + Log.getStackTraceString(ex));
} }