Commit 079c3608 authored by Rogier 'DocWilco' Mulhuijzen's avatar Rogier 'DocWilco' Mulhuijzen Committed by Tollef Fog Heen

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

parent 0ff7bb23
......@@ -96,7 +96,7 @@ print_backend(struct vcc *tl,
if (serial >= 0)
Fb(tl, 0, "[%d]", serial);
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 = \"");
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