1
0
Fork 0
mirror of https://github.com/M66B/NetGuard.git synced 2025-01-01 12:54:07 +00:00

Revert prefering IPv4 DNS servers

This commit is contained in:
M66B 2017-03-03 11:58:14 +01:00
parent 918d58d545
commit c4d373e79c

View file

@ -1071,21 +1071,6 @@ public class ServiceSinkhole extends VpnService implements SharedPreferences.OnS
}
}
// Prefer IPv4 addresses
Collections.sort(listDns, new Comparator<InetAddress>() {
@Override
public int compare(InetAddress a, InetAddress b) {
boolean a4 = (a instanceof Inet4Address);
boolean b4 = (b instanceof Inet4Address);
if (a4 && !b4)
return -1;
else if (!a4 && b4)
return 1;
else
return 0;
}
});
return listDns;
}