Merge pull request #520 from debfx/patch-1

Fix condition for filtering local DNS servers
This commit is contained in:
Marcel Bokhorst 2019-01-07 23:20:02 +01:00 committed by GitHub
commit 4a7eb83cf6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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();