Commit e83eaaf5 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Separate listen addresses by a newline

parent 58082705
......@@ -451,7 +451,7 @@ ccf_listen_address(struct cli *cli, const char * const *av, void *priv)
if (ls->sock < 0)
continue;
VTCP_myname(ls->sock, h, sizeof h, p, sizeof p);
VCLI_Out(cli, "%s %s", h, p);
VCLI_Out(cli, "%s %s\n", h, p);
}
}
......
......@@ -532,6 +532,9 @@ varnish_start(struct varnish *v)
vtc_log(v->vl, 0,
"CLI debug.listen_address command failed: %u %s", u, resp);
h = resp;
p = strchr(h, '\n');
if (p != NULL)
*p = '\0';
p = strchr(h, ' ');
AN(p);
*p++ = '\0';
......
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