From: phk Date: Fri, 15 Sep 2006 08:43:39 +0000 (+0000) Subject: Print '-' if we don't have an IP# on startup. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=76c21236d935b3b4874226e5cebc90672860ce0f;p=varnish Print '-' if we don't have an IP# on startup. Also skip IP# from SessionReuse records. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@985 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishncsa/varnishncsa.c b/varnish-cache/bin/varnishncsa/varnishncsa.c index 60c0fee1..2ca91998 100644 --- a/varnish-cache/bin/varnishncsa/varnishncsa.c +++ b/varnish-cache/bin/varnishncsa/varnishncsa.c @@ -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';