Fix segment fault

This commit is contained in:
Nick Peng
2018-06-14 23:49:01 +08:00
parent 35f945759d
commit 53df9f7063
4 changed files with 54 additions and 9 deletions

View File

@@ -116,7 +116,7 @@ int smartdns_init()
}
tlog_setlogscreen(1);
tlog_setlevel(TLOG_ERROR);
tlog_setlevel(dns_conf_loglevel);
if (dns_conf_server_num <= 0) {
if (smartdns_load_from_resolv() != 0) {