dns_server: fix bind-tls fail when cert file exists

This commit is contained in:
Nick Peng
2023-03-10 23:43:42 +08:00
parent 1ac2b2ad98
commit b2037c3f96
2 changed files with 2 additions and 6 deletions

View File

@@ -371,7 +371,7 @@ static int _smartdns_create_cert(void)
}
if (dns_conf_bind_ca_file[0] != 0 && dns_conf_bind_ca_key_file[0] != 0) {
return -1;
return 0;
}
conf_get_conf_fullpath("smartdns-cert.pem", dns_conf_bind_ca_file, sizeof(dns_conf_bind_ca_file));