mirror of https://github.com/M66B/NetGuard.git
Small improvement
This commit is contained in:
parent
35f7330fd8
commit
215480e79e
|
@ -658,11 +658,11 @@ public class SinkholeService extends VpnService implements SharedPreferences.OnS
|
||||||
if (s == 168) {
|
if (s == 168) {
|
||||||
for (int t = 1; t <= 255; t++)
|
for (int t = 1; t <= 255; t++)
|
||||||
if (t != 42 && t != 43)
|
if (t != 42 && t != 43)
|
||||||
builder.addRoute(r + "." + s + "." + t + ".0", 24);
|
builder.addRoute(String.format("%d.%d.%d.0", r, s, t), 24);
|
||||||
} else
|
} else
|
||||||
builder.addRoute(r + "." + s + ".0.0", 16);
|
builder.addRoute(String.format("%d.%d.0.0", r, s), 16);
|
||||||
} else if (r != 127)
|
} else if (r != 127)
|
||||||
builder.addRoute(r + ".0.0.0", 8);
|
builder.addRoute(String.format("%d.0.0.0", r), 8);
|
||||||
} else
|
} else
|
||||||
builder.addRoute("0.0.0.0", 0);
|
builder.addRoute("0.0.0.0", 0);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue