]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
imap-login: client-authenticate - Make sure redirect IPv6 is handled correctly.
authorStephan Bosch <stephan.bosch@open-xchange.com>
Sat, 20 Nov 2021 22:41:17 +0000 (23:41 +0100)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Mon, 17 Jan 2022 11:52:10 +0000 (13:52 +0200)
Pass IP structure to URL API instead of only the hostname as a string.

src/imap-login/client-authenticate.c

index f08c313bcab728d3e8c7e40cb9af81d095e54fb7..45071db2af297ab9d75cb4567bdb5dd1e6b906d9 100644 (file)
@@ -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 ");