X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/32f60a6e7bec42f733a60eb10afa29a231f691b9..7da9a16d10eecddf695d00fbbf948e9b70bd7706:/access.c diff --git a/access.c b/access.c index 710a1afe..bd07567a 100644 --- a/access.c +++ b/access.c @@ -88,8 +88,7 @@ static int match_address(char *addr, char *tok) /* Fail quietly if tok is a hostname (not an address) */ if (strspn(tok, "./0123456789") != len #ifdef INET6 - && strspn(tok, "/0123456789:ABCDEFabcdef") != len - && !strchr(tok, '%') + && !strchr(tok, ':') #endif ) return 0;