support set smartdns as dnsmasq upstream server

This commit is contained in:
Nick Peng
2018-12-01 20:04:16 +08:00
parent 9eb8aa1571
commit ad6741e4da
11 changed files with 151 additions and 70 deletions

View File

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

View File

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