Prefer configuration from DNS records

The provider will know best and this will be faster
This commit is contained in:
M66B 2019-05-12 10:23:15 +02:00
parent 561c628817
commit 745f78206e
1 changed files with 6 additions and 6 deletions

View File

@ -144,14 +144,14 @@ public class EmailProvider {
static EmailProvider fromDomain(Context context, String domain) throws IOException {
try {
Log.i("Provider from ISPDB domain=" + domain);
return addSpecials(context, fromISPDB(domain));
} catch (Throwable ex) {
Log.i("Provider from DNS domain=" + domain);
return addSpecials(context, fromDNS(domain));
} catch (UnknownHostException ex) {
Log.w(ex);
try {
Log.i("Provider from DNS domain=" + domain);
return addSpecials(context, fromDNS(domain));
} catch (UnknownHostException ex1) {
Log.i("Provider from ISPDB domain=" + domain);
return addSpecials(context, fromISPDB(domain));
} catch (Throwable ex1) {
Log.w(ex1);
try {
Log.i("Provider from template domain=" + domain);