Skip to content

Commit

Permalink
Workaround Android bug
Browse files Browse the repository at this point in the history
  • Loading branch information
M66B committed Feb 21, 2021
1 parent dd7b998 commit 93cd200
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/src/main/java/eu/faircode/netguard/ServiceSinkhole.java
Original file line number Diff line number Diff line change
Expand Up @@ -1379,7 +1379,8 @@ private Builder getBuilder(List<Rule> listAllowed, List<Rule> listRule) {
Log.i(TAG, "Exclude " + exclude.getStart().getHostAddress() + "..." + exclude.getEnd().getHostAddress());
for (IPUtil.CIDR include : IPUtil.toCIDR(start, IPUtil.minus1(exclude.getStart())))
try {
builder.addRoute(include.address, include.prefix);
if (!"0.0.0.0".equals(include.address.getHostAddress()))
builder.addRoute(include.address, include.prefix);
} catch (Throwable ex) {
Log.e(TAG, ex.toString() + "\n" + Log.getStackTraceString(ex));
}
Expand Down

0 comments on commit 93cd200

Please sign in to comment.