Change config accept-ip to whitelist-ip

This commit is contained in:
Nick Peng
2019-06-18 22:23:03 +08:00
parent 3ef325d75d
commit cb3656cb57
7 changed files with 39 additions and 37 deletions

View File

@@ -988,12 +988,12 @@ static int _dns_server_ip_rule_check(struct dns_request *request, unsigned char
}
rule_not_found:
if (result_flag & DNSSERVER_FLAG_ACCEPT_IP) {
if (result_flag & DNSSERVER_FLAG_WHITELIST_IP) {
if (rule == NULL) {
goto skip;
}
if (!rule->ip_accept) {
if (!rule->whitelist) {
goto skip;
}
}