mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-23 18:02:15 -05:00
Fixed https://github.com/typingArtist/k-9/issues/1. HELO/EHLO IPv6 address literals
are now conforming to RFC5321.
This commit is contained in:
parent
731da2747e
commit
acd756e642
@ -245,7 +245,7 @@ public class SmtpTransport extends Transport {
|
||||
// characters (see issue 2143), so use IP address.
|
||||
if (!ipAddr.equals("")) {
|
||||
if (localAddress instanceof Inet6Address) {
|
||||
localHost = "[IPV6:" + ipAddr + "]";
|
||||
localHost = "[IPv6:" + ipAddr + "]";
|
||||
} else {
|
||||
localHost = "[" + ipAddr + "]";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user