aboutsummaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2024-01-11 13:18:15 +0000
committerOmar Polo <op@omarpolo.com>2024-01-11 13:18:15 +0000
commitd8df67565ca01ed0e6ea0a41613be7d624306042 (patch)
treecee8e6dc6c8d7fd2dbe9567fea1eb2b32bfc42ee /parse.y
parent0d5282b6475a30a3f39559c67a1504cc7c6930ea (diff)
fix missing listen on warning
printed the wrong value for the hostname
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.y b/parse.y
index 45cdf43..ae2c143 100644
--- a/parse.y
+++ b/parse.y
@@ -354,7 +354,7 @@ vhost : SERVER string {
fatal("snprintf");
yywarn("missing `listen on' in server %s,"
- " assuming %s port %d", $2,
+ " assuming %s port %d", host->domain,
default_host ? default_host : "*",
default_port);
listen_on(default_host, portno);