From: Stephan Bosch Date: Sat, 20 Nov 2021 22:41:17 +0000 (+0100) Subject: imap-login: client-authenticate - Make sure redirect IPv6 is handled correctly. X-Git-Tag: 2.4.0~4678 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5da24088003510d8b6887ce2f19a8ce3c1b5d5cb;p=thirdparty%2Fdovecot%2Fcore.git imap-login: client-authenticate - Make sure redirect IPv6 is handled correctly. Pass IP structure to URL API instead of only the hostname as a string. --- diff --git a/src/imap-login/client-authenticate.c b/src/imap-login/client-authenticate.c index f08c313bca..45071db2af 100644 --- a/src/imap-login/client-authenticate.c +++ b/src/imap-login/client-authenticate.c @@ -61,6 +61,7 @@ void imap_client_auth_result(struct client *client, url.userid = reply->proxy.username; url.auth_type = client->auth_mech_name; url.host.name = reply->proxy.host; + url.host.ip = reply->proxy.host_ip; if (reply->proxy.port != 143) url.port = reply->proxy.port; str_append(referral, "REFERRAL ");