search for: is_ipv6_address

Displaying 1 result from an estimated 1 matches for "is_ipv6_address".

Did you mean: is_ip_address
2018 Jan 15
0
doveadm mailbox command fails if backend has an IPv6 address
...rc/doveadm/doveadm-mail-server.c.orig 2017-10-05 19:09:55.000000000 +0200 +++ dovecot-2.2.33.2/src/doveadm/doveadm-mail-server.c 2018-01-15 21:59:08.897161000 +0100 @@ -249,7 +249,10 @@ } ret = -1; } else { - *host_r = t_strdup_printf("%s:%u", proxy_host, proxy_port); + if (is_ipv6_address(proxy_host) && *proxy_host != '[') + *host_r = t_strdup_printf("[%s]:%u", proxy_host, proxy_port); + else + *host_r = t_strdup_printf("%s:%u", proxy_host, proxy_port); } } pool_unref(&pool);