mirror of
https://github.com/M66B/NetGuard.git
synced 2025-02-22 22:31:17 +00:00
Fix condition for filtering local DNS servers
Previously local DNS servers were removed when LAN access was enabled. Instead it should be the other way around. With LAN access one wants to use the local DNS servers.
This commit is contained in:
parent
78d1696b24
commit
901cfcce9d
1 changed files with 1 additions and 1 deletions
|
@ -1105,7 +1105,7 @@ public class ServiceSinkhole extends VpnService implements SharedPreferences.OnS
|
|||
// Remove local DNS servers when not routing LAN
|
||||
boolean lan = prefs.getBoolean("lan", false);
|
||||
boolean use_hosts = prefs.getBoolean("filter", false) && prefs.getBoolean("use_hosts", false);
|
||||
if (lan && use_hosts) {
|
||||
if (!lan && use_hosts) {
|
||||
List<InetAddress> listLocal = new ArrayList<>();
|
||||
try {
|
||||
Enumeration<NetworkInterface> nis = NetworkInterface.getNetworkInterfaces();
|
||||
|
|
Loading…
Reference in a new issue