]> err.no Git - varnish/commitdiff
Print '-' if we don't have an IP# on startup.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 15 Sep 2006 08:43:39 +0000 (08:43 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 15 Sep 2006 08:43:39 +0000 (08:43 +0000)
Also skip IP# from SessionReuse records.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@985 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishncsa/varnishncsa.c

index 60c0fee1c362f6e251a6b45127b5bf5bbbc4bb0c..2ca9199824e5a6475883fc1bb933a9cc462fe83b 100644 (file)
@@ -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';