Make DNS TLS error log more suggestive

This commit is contained in:
arberkatellari
2023-10-26 06:30:16 -04:00
committed by Dan Christian Bogos
parent b270112425
commit c4e0d92a2a
2 changed files with 5 additions and 5 deletions

View File

@@ -62,7 +62,7 @@ func (da *DNSAgent) initDNSServer() (_ error) {
if strings.HasSuffix(da.cgrCfg.DNSAgentCfg().Listeners[i].Network, utils.TLSNoCaps) {
cert, err := tls.LoadX509KeyPair(da.cgrCfg.TLSCfg().ServerCerificate, da.cgrCfg.TLSCfg().ServerKey)
if err != nil {
return err
return fmt.Errorf("load certificate error <%v>", err)
}
da.servers[i].Net = "tcp-tls"
da.servers[i].TLSConfig = &tls.Config{