1
0
Fork 0
mirror of https://github.com/M66B/NetGuard.git synced 2024-12-25 09:21:14 +00:00

Revert "Fix condition for filtering local DNS servers"

This reverts commit 901cfcce9d.
This commit is contained in:
M66B 2019-01-09 19:14:33 +00:00
parent 42056f1ccc
commit 876f1eebd6

View file

@ -1105,7 +1105,7 @@ public class ServiceSinkhole extends VpnService implements SharedPreferences.OnS
// Remove local DNS servers when not routing LAN // Remove local DNS servers when not routing LAN
boolean lan = prefs.getBoolean("lan", false); boolean lan = prefs.getBoolean("lan", false);
boolean use_hosts = prefs.getBoolean("filter", false) && prefs.getBoolean("use_hosts", 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<>(); List<InetAddress> listLocal = new ArrayList<>();
try { try {
Enumeration<NetworkInterface> nis = NetworkInterface.getNetworkInterfaces(); Enumeration<NetworkInterface> nis = NetworkInterface.getNetworkInterfaces();