Modify the detection method of smartdns

This commit is contained in:
Nick Peng
2019-12-21 11:28:37 +08:00
parent aaeae7167b
commit 982002e836
4 changed files with 50 additions and 38 deletions

View File

@@ -1688,6 +1688,11 @@ static int _dns_server_process_ptr(struct dns_request *request)
found = 1;
}
/* Determine if the smartdns service is in effect. */
if (found == 0 && strncmp(request->domain, "smartdns", sizeof("smartdns")) == 0) {
found = 1;
}
if (found == 0) {
goto errout;
}