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