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

Print '-' if we don't have an IP# on startup.

Also skip IP# from SessionReuse records.


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@985 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent aaa1cf69
......@@ -71,12 +71,14 @@ extended_log_format(void *priv, unsigned tag, unsigned fd, unsigned len, unsigne
assert(ll[fd] != NULL);
ll[fd]->sb = vsb_new(NULL, NULL, 0, VSB_AUTOEXTEND);
assert(ll[fd]->sb != NULL);
strcpy(ll[fd]->df_h, "-");
}
lp = ll[fd];
switch (tag) {
case SLT_SessionOpen:
case SLT_SessionReuse:
for (p = ptr, q = lp->df_h; *p && *p != ' ';)
*q++ = *p++;
*q = '\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