mirror of https://github.com/M66B/FairEmail.git
Use DNS watch as default DNS server
This commit is contained in:
parent
8de929ff54
commit
2e4d0c5917
|
@ -28,7 +28,8 @@ import java.util.Map;
|
||||||
import javax.mail.MessagingException;
|
import javax.mail.MessagingException;
|
||||||
|
|
||||||
public class ConnectionHelper {
|
public class ConnectionHelper {
|
||||||
private static final String DEFAULT_DNS = "8.8.8.8";
|
// https://dns.watch/
|
||||||
|
private static final String DEFAULT_DNS = "84.200.69.80";
|
||||||
|
|
||||||
static final int AUTH_TYPE_PASSWORD = 1;
|
static final int AUTH_TYPE_PASSWORD = 1;
|
||||||
static final int AUTH_TYPE_GMAIL = 2;
|
static final int AUTH_TYPE_GMAIL = 2;
|
||||||
|
|
|
@ -442,7 +442,6 @@ public class EmailProvider {
|
||||||
private static SRVRecord lookup(Context context, String record) throws TextParseException, UnknownHostException {
|
private static SRVRecord lookup(Context context, String record) throws TextParseException, UnknownHostException {
|
||||||
Lookup lookup = new Lookup(record, Type.SRV);
|
Lookup lookup = new Lookup(record, Type.SRV);
|
||||||
|
|
||||||
// https://dns.watch/ 84.200.69.80
|
|
||||||
SimpleResolver resolver = new SimpleResolver(ConnectionHelper.getDnsServer(context));
|
SimpleResolver resolver = new SimpleResolver(ConnectionHelper.getDnsServer(context));
|
||||||
lookup.setResolver(resolver);
|
lookup.setResolver(resolver);
|
||||||
Log.i("Lookup record=" + record + " @" + resolver.getAddress());
|
Log.i("Lookup record=" + record + " @" + resolver.getAddress());
|
||||||
|
|
Loading…
Reference in New Issue