Added default DNS v6 address

This commit is contained in:
M66B 2024-01-29 20:45:18 +01:00
parent 7a0c6a12ee
commit e84ba477ca
1 changed files with 4 additions and 2 deletions

View File

@ -88,7 +88,8 @@ import javax.net.ssl.SSLSocketFactory;
public class DnsHelper { public class DnsHelper {
// https://dns.watch/ // https://dns.watch/
private static final String DEFAULT_DNS = "84.200.69.80"; private static final String DEFAULT_DNS4 = "84.200.69.80";
private static final String DEFAULT_DNS6 = "2001:1608:10:25::1c04:b12f";
private static final int CHECK_TIMEOUT = 5; // seconds private static final int CHECK_TIMEOUT = 5; // seconds
private static final int LOOKUP_TIMEOUT = 15; // seconds private static final int LOOKUP_TIMEOUT = 15; // seconds
@ -384,7 +385,8 @@ public class DnsHelper {
Log.w("DNS extra invalid=" + extra); Log.w("DNS extra invalid=" + extra);
} }
result.add(DEFAULT_DNS); result.add(DEFAULT_DNS4);
result.add(DEFAULT_DNS6);
return result; return result;
} }