Commit 4d01e174 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Look for separating space before colon, so that we can grok ":: 50239"

as a socketaddr.



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@5122 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent ad301ae1
......@@ -104,9 +104,9 @@ VSS_parse(const char *str, char **addr, char **port)
}
} 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);
......
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