support set smartdns as dnsmasq upstream server
This commit is contained in:
@@ -26,7 +26,7 @@ int dns_conf_log_level = TLOG_ERROR;
|
||||
char dns_conf_log_file[DNS_MAX_PATH];
|
||||
int dns_conf_log_size = 1024 * 1024;
|
||||
int dns_conf_log_num = 8;
|
||||
int dns_conf_audit_enable;
|
||||
int dns_conf_audit_enable = 0;
|
||||
char dns_conf_audit_file[DNS_MAX_PATH];
|
||||
int dns_conf_audit_size = 1024 * 1024;
|
||||
int dns_conf_audit_num = 2;
|
||||
|
||||
@@ -929,6 +929,10 @@ static int _dns_server_process_ptr(struct dns_request *request, struct dns_packe
|
||||
}
|
||||
}
|
||||
|
||||
if (strstr(request->domain, "0.0.0.0") != NULL) {
|
||||
found = 1;
|
||||
}
|
||||
|
||||
if (found == 0) {
|
||||
goto errout;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user