summaryrefslogtreecommitdiff
path: root/src/url.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/url.c')
-rw-r--r--src/url.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/url.c b/src/url.c
index 7d3880ac..0130fa8e 100644
--- a/src/url.c
+++ b/src/url.c
@@ -653,7 +653,7 @@ static bool_t Url_host_is_ip(const char *host)
return TRUE;
}
if (strchr(host, ':') &&
- (len == strspn(host, "0123456789abcdefABCDEF:.[]"))) {
+ (len == strspn(host, "0123456789abcdefABCDEF:."))) {
/* The precise format is shown in section 3.2.2 of rfc 3986 */
MSG("an IPv6 address\n");
return TRUE;