conf: don't allow slash with hostname in allow/deny directive

This commit is contained in:
Miroslav Lichvar 2017-07-25 12:55:32 +02:00
parent e8fb11c433
commit ea85bc43e0

2
conf.c
View file

@ -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;