1
0
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:
Matthias Wächter 2014-07-05 18:59:48 +02:00
parent 731da2747e
commit acd756e642

View File

@ -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 + "]";
}