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

@@ -50,11 +50,7 @@
# bind [::]:53
# bind [::]:53@eth0
# bind-tcp [::]:53
bind [::]:7053
server 192.168.1.1:6053 -bootstrap-dns
server dns.google
server 192.168.1.1:6053
bind-tls [::]:53
# tcp connection idle timeout
# tcp-idle-time [second]

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