1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-02-24 23:12:55 +00:00

Small improvement

This commit is contained in:
M66B 2019-07-30 08:00:30 +02:00
parent 773b5660ab
commit eaf3ea4a7c

View file

@ -151,7 +151,9 @@ public class MailService implements AutoCloseable {
} catch (MailConnectException ex) {
if (this.insecure)
try {
for (InetAddress iaddr : InetAddress.getAllByName(host))
InetAddress[] iaddrs = InetAddress.getAllByName(host);
if (iaddrs.length > 1)
for (InetAddress iaddr : iaddrs)
try {
_connect(context, iaddr.getHostAddress(), port, user, password);
return;