dns_server: fix bind-tls fail when cert file exists
This commit is contained in:
@@ -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]
|
||||
|
||||
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user