Actually use a default (80) if no port is specified

parent b73b1a02
...@@ -88,7 +88,7 @@ print_backend(struct vcc *tl, ...@@ -88,7 +88,7 @@ print_backend(struct vcc *tl,
if (serial >= 0) if (serial >= 0)
Fb(tl, 0, "[%d]", serial); Fb(tl, 0, "[%d]", serial);
Fb(tl, 0, "\",\n"); Fb(tl, 0, "\",\n");
Emit_Sockaddr(tl, &tmptok, b_defaults.port); Emit_Sockaddr(tl, &tmptok, b_defaults.port ? b_defaults.port : "80");
Fb(tl, 0, "\t.hosthdr = \""); Fb(tl, 0, "\t.hosthdr = \"");
if (b_defaults.hostheader != NULL) if (b_defaults.hostheader != NULL)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment