r5122 - trunk/varnish-cache/lib/libvarnish
phk at varnish-cache.org
phk at varnish-cache.org
Wed Aug 25 10:42:46 CEST 2010
Author: phk
Date: 2010-08-25 10:42:45 +0200 (Wed, 25 Aug 2010)
New Revision: 5122
Modified:
trunk/varnish-cache/lib/libvarnish/vss.c
Log:
Look for separating space before colon, so that we can grok ":: 50239"
as a socketaddr.
Modified: trunk/varnish-cache/lib/libvarnish/vss.c
===================================================================
--- trunk/varnish-cache/lib/libvarnish/vss.c 2010-08-25 08:08:22 UTC (rev 5121)
+++ trunk/varnish-cache/lib/libvarnish/vss.c 2010-08-25 08:42:45 UTC (rev 5122)
@@ -104,9 +104,9 @@
}
} else {
/* IPv4 address of the form 127.0.0.1:80, or non-numeric */
- p = strchr(str, ':');
+ p = strchr(str, ' ');
if (p == NULL)
- p = strchr(str, ' ');
+ p = strchr(str, ':');
if (p == NULL) {
*addr = strdup(str);
XXXAN(*addr);
More information about the varnish-commit
mailing list