Do not use local DNS servers when not routing LAN and ad blocking

This commit is contained in:
M66B 2017-03-21 16:44:08 +01:00
parent 401355f978
commit 010184503f
1 changed files with 2 additions and 1 deletions

View File

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