commit - 3cb7e8d7ace5f0ba13193181d5f8d63aa1923e0b
commit + c2c051f28e8934a679f5ebe8195497ce5eccc56c
blob - fcb0219c28156bac972731822154833cb80c37c6
blob + 18c3ef616a6c4673188b78b3cbe4c82af1f1e03f
--- parse.y
+++ parse.y
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);
yywarn("option `ipv6' is deprecated,"
" please use `listen on'");
if ($2)
- default_host = "*";
+ default_host = NULL;
else
default_host = "0.0.0.0";
}
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);
}
{
struct sym *sym, *next;
- default_host = "*";
+ default_host = NULL;
default_port = 1965;
conf = c;