mirror of
https://github.com/M66B/NetGuard.git
synced 2025-03-10 06:03:10 +00:00
Fixed reload on subnet change
This commit is contained in:
parent
90b3caf12e
commit
fed3a2a503
1 changed files with 7 additions and 0 deletions
|
@ -2985,6 +2985,13 @@ public class ServiceSinkhole extends VpnService implements SharedPreferences.OnS
|
|||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Builder addRoute(InetAddress address, int prefixLength) {
|
||||
listRoute.add(address.getHostAddress() + "/" + prefixLength);
|
||||
super.addRoute(address, prefixLength);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Builder addDnsServer(InetAddress address) {
|
||||
listDns.add(address);
|
||||
|
|
Loading…
Add table
Reference in a new issue