mirror of
https://github.com/M66B/NetGuard.git
synced 2025-01-03 05:44:14 +00:00
Exclude DNS traffic when not filtering / subnet routing
This commit is contained in:
parent
e08b945352
commit
b0f3d9ce2c
1 changed files with 5 additions and 0 deletions
|
@ -1297,6 +1297,11 @@ public class ServiceSinkhole extends VpnService implements SharedPreferences.OnS
|
|||
listExclude.add(new IPUtil.CIDR("192.168.0.0", 16));
|
||||
}
|
||||
|
||||
if (!filter)
|
||||
for (InetAddress dns : getDns(ServiceSinkhole.this))
|
||||
if (dns instanceof Inet4Address)
|
||||
listExclude.add(new IPUtil.CIDR(dns.getHostAddress(), 32));
|
||||
|
||||
// https://en.wikipedia.org/wiki/Mobile_country_code
|
||||
Configuration config = getResources().getConfiguration();
|
||||
|
||||
|
|
Loading…
Reference in a new issue