changeset 13104:ac6fec6057e6

config: Fixed IPv6 address handling for parsing v1.x style listen/ssl_listen settings.
author Timo Sirainen <tss@iki.fi>
date Mon, 02 Jul 2012 08:06:19 +0300
parents 2440e656ed9f
children 13b8b90bed3e
files src/config/old-set-parser.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/config/old-set-parser.c	Sun Jun 24 01:03:52 2012 +0300
+++ b/src/config/old-set-parser.c	Mon Jul 02 08:06:19 2012 +0300
@@ -299,7 +299,7 @@
 			return TRUE;
 		}
 		p = strrchr(value, ':');
-		if (p != NULL) {
+		if (p != NULL && listen_has_port(value)) {
 			obsolete(ctx, "%s=..:port has been replaced by service { inet_listener { port } }", key);
 			value = t_strdup_until(value, p++);
 			if (config_filter_match(&old_section->filter, &imap_filter)) {