Hostnames are case-insensitive
This commit is contained in:
parent
d8c616aedc
commit
3b93c7437b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=70272
@ -366,7 +366,8 @@ main(argc, argv)
|
||||
p = hp->h_name;
|
||||
p += strlen(hp->h_name);
|
||||
p -= strlen(domain);
|
||||
if (p > hp->h_name && strcmp(p, domain) == 0)
|
||||
if (p > hp->h_name &&
|
||||
strcasecmp(p, domain) == 0)
|
||||
*p = '\0';
|
||||
}
|
||||
p = hp->h_name;
|
||||
|
Loading…
Reference in New Issue
Block a user