mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-30 13:47:05 +02:00
Refactoring
This commit is contained in:
@@ -47,7 +47,7 @@ public class IPInfo {
|
||||
if (to == null || !to.contains("@"))
|
||||
throw new UnknownHostException();
|
||||
String domain = to.substring(to.indexOf('@') + 1);
|
||||
InetAddress address = DNSHelper.lookupMx(context, domain);
|
||||
InetAddress address = DnsHelper.lookupMx(context, domain);
|
||||
if (address == null)
|
||||
throw new UnknownHostException();
|
||||
return new Pair<>(domain, getOrganization(address));
|
||||
|
||||
Reference in New Issue
Block a user