mirror of
https://github.com/moparisthebest/k-9
synced 2025-02-07 02:30:10 -05:00
Prefix IPv6-addresses with "IPV6:" in EHLO command.
Fixes issue 1708
This commit is contained in:
parent
3812c75f66
commit
576078e778
@ -183,9 +183,16 @@ public class SmtpTransport extends Transport
|
|||||||
|
|
||||||
if (localHost.equals(localAddress.getHostAddress()))
|
if (localHost.equals(localAddress.getHostAddress()))
|
||||||
{
|
{
|
||||||
// IP was returned
|
// We don't have a FQDN, so use IP address.
|
||||||
|
if (localAddress instanceof Inet6Address)
|
||||||
|
{
|
||||||
|
localHost = "[IPV6:" + localHost + "]";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
localHost = "[" + localHost + "]";
|
localHost = "[" + localHost + "]";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
List<String> results = executeSimpleCommand("EHLO " + localHost);
|
List<String> results = executeSimpleCommand("EHLO " + localHost);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user