Bugfix, ECS, and makesure max query timeout is about 1000ms

This commit is contained in:
Nick Peng
2018-12-22 20:13:31 +08:00
parent 7aa32069ef
commit f1999ecfd8
5 changed files with 18 additions and 14 deletions

View File

@@ -88,8 +88,8 @@ int config_server(int argc, char *argv[], dns_server_type_t type, int default_po
}
if (index >= DNS_MAX_SERVERS) {
tlog(TLOG_ERROR, "exceeds max server number");
return -1;
tlog(TLOG_WARN, "exceeds max server number, %s", ip);
return 0;
}
server = &dns_conf_servers[index];