mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-05-07 22:45:44 -04:00
I decided to go with the slightly simpler logic Thorild Selen suggested
in a subsequent email.
This commit is contained in:
3
access.c
3
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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user