changeset 9103:1877cf23eec7 HEAD

Give a better error message when trying to listen on IPv6 address and IPv6 is disabled.
author Timo Sirainen <tss@iki.fi>
date Sun, 31 May 2009 20:36:56 -0400
parents 531083e6e84a
children 3870069faea3
files src/master/listener.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/master/listener.c	Sun May 31 20:04:55 2009 -0400
+++ b/src/master/listener.c	Sun May 31 20:36:56 2009 -0400
@@ -39,6 +39,10 @@
 			i_fatal("%s: Invalid data after ']' in address %s",
 				set_name, name);
 		}
+#ifndef HAVE_IPV6
+		i_fatal("%s: Compiled without IPv6 support, can't listen on %s",
+			set_name, name);
+#endif
 	} else {
 		p = strrchr(name, ':');
 		if (p != NULL)