Skip to content

Commit

Permalink
Merge e7eb72e into c87c71b
Browse files Browse the repository at this point in the history
  • Loading branch information
bagder committed Mar 3, 2018
2 parents c87c71b + e7eb72e commit d32ce4b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion lib/url.c
Expand Up @@ -2574,7 +2574,15 @@ static bool check_noproxy(const char *name, const char *no_proxy)
/* NO_PROXY was specified and it wasn't just an asterisk */

no_proxy_len = strlen(no_proxy);
endptr = strchr(name, ':');
if(name[0] == '[') {
/* IPv6 numerical address */
endptr = strchr(name, ']');
if(!endptr)
return FALSE;
name++;
}
else
endptr = strchr(name, ':');
if(endptr)
namelen = endptr - name;
else
Expand Down

0 comments on commit d32ce4b

Please sign in to comment.