Commit Diff


commit - 3cb7e8d7ace5f0ba13193181d5f8d63aa1923e0b
commit + c2c051f28e8934a679f5ebe8195497ce5eccc56c
blob - fcb0219c28156bac972731822154833cb80c37c6
blob + 18c3ef616a6c4673188b78b3cbe4c82af1f1e03f
--- parse.y
+++ parse.y
@@ -38,7 +38,7 @@
 
 struct conf *conf;
 
-static const char	*default_host = "*";
+static const char	*default_host = NULL;
 static uint16_t		 default_port = 1965;
 
 TAILQ_HEAD(files, file)		 files = TAILQ_HEAD_INITIALIZER(files);
@@ -229,7 +229,7 @@ option		: CHROOT string	{
 			yywarn("option `ipv6' is deprecated,"
 			    " please use `listen on'");
 			if ($2)
-				default_host = "*";
+				default_host = NULL;
 			else
 				default_host = "0.0.0.0";
 		}
@@ -354,7 +354,8 @@ vhost		: SERVER string {
 					fatal("snprintf");
 
 				yywarn("missing `listen on' in server %s,"
-				    " assuming %s port %d", $2, default_host,
+				    " assuming %s port %d", $2,
+				    default_host ? default_host : "*",
 				    default_port);
 				listen_on(default_host, portno);
 			}
@@ -1072,7 +1073,7 @@ parse_conf(struct conf *c, const char *filename)
 {
 	struct sym		*sym, *next;
 
-	default_host = "*";
+	default_host = NULL;
 	default_port = 1965;
 
 	conf = c;