Small improvement

pull/160/head
M66B 5 years ago
parent 773b5660ab
commit eaf3ea4a7c

@ -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;

Loading…
Cancel
Save