diff --git a/app/src/main/java/eu/faircode/netguard/ServiceSinkhole.java b/app/src/main/java/eu/faircode/netguard/ServiceSinkhole.java index afa1868f..d5a57fec 100644 --- a/app/src/main/java/eu/faircode/netguard/ServiceSinkhole.java +++ b/app/src/main/java/eu/faircode/netguard/ServiceSinkhole.java @@ -1071,21 +1071,6 @@ public class ServiceSinkhole extends VpnService implements SharedPreferences.OnS } } - // Prefer IPv4 addresses - Collections.sort(listDns, new Comparator() { - @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; }