Use DNS watch as default DNS server

pull/159/head
M66B 6 years ago
parent 8de929ff54
commit 2e4d0c5917

@ -28,7 +28,8 @@ import java.util.Map;
import javax.mail.MessagingException;
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_GMAIL = 2;

@ -442,7 +442,6 @@ public class EmailProvider {
private static SRVRecord lookup(Context context, String record) throws TextParseException, UnknownHostException {
Lookup lookup = new Lookup(record, Type.SRV);
// https://dns.watch/ 84.200.69.80
SimpleResolver resolver = new SimpleResolver(ConnectionHelper.getDnsServer(context));
lookup.setResolver(resolver);
Log.i("Lookup record=" + record + " @" + resolver.getAddress());

Loading…
Cancel
Save