mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-30 13:12:25 -05:00
Merge pull request #478 from typingArtist/master
Fix: HELO/EHLO with literal IPv6 address not conformant to RFC5321 verified in spec – ashleywillis
This commit is contained in:
commit
0a507463c4
@ -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