conf: don't allow slash with hostname in allow/deny directive
This commit is contained in:
parent
e8fb11c433
commit
ea85bc43e0
1 changed files with 1 additions and 1 deletions
2
conf.c
2
conf.c
|
@ -1071,7 +1071,7 @@ parse_allow_deny(char *line, ARR_Instance restrictions, int allow)
|
|||
}
|
||||
|
||||
} else {
|
||||
if (DNS_Name2IPAddress(p, &ip_addr, 1) == DNS_Success) {
|
||||
if (!slashpos && DNS_Name2IPAddress(p, &ip_addr, 1) == DNS_Success) {
|
||||
new_node = (AllowDeny *)ARR_GetNewElement(restrictions);
|
||||
new_node->allow = allow;
|
||||
new_node->all = all;
|
||||
|
|
Loading…
Reference in a new issue