Allow clients to have a resolved hostname of localhost
I slightly changed the patch to match surrounding style. (cherry picked from commit 0b06270fd6266c85d19e008efcd039605daf59d0)
This commit is contained in:
parent
74b2fb72db
commit
3c80b42532
1 changed files with 3 additions and 0 deletions
|
@ -734,6 +734,9 @@ valid_hostname(const char *hostname)
|
|||
if(hostname == NULL)
|
||||
return NO;
|
||||
|
||||
if(!strcmp(hostname, "localhost"))
|
||||
return YES;
|
||||
|
||||
if('.' == *p || ':' == *p || '/' == *p)
|
||||
return NO;
|
||||
|
||||
|
|
Loading…
Reference in a new issue