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:
parent
918d58d545
commit
c4d373e79c
1 changed files with 0 additions and 15 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue