diff --git a/internal/home/clients.go b/internal/home/clients.go index 37f185c7a2f..c3eb366f13f 100644 --- a/internal/home/clients.go +++ b/internal/home/clients.go @@ -566,7 +566,8 @@ func (clients *clientsContainer) SetWhoisInfo(ip string, info [][]string) { ch, ok := clients.ipHost[ip] if ok { ch.WhoisInfo = info - log.Debug("clients: set whois info for auto-client %s: %v", ch.Host, ch.WhoisInfo) + log.Debug("clients: set whois info for auto-client %s: %q", ch.Host, info) + return } diff --git a/internal/home/dns.go b/internal/home/dns.go index f2c17fb9fa8..3640fd0393b 100644 --- a/internal/home/dns.go +++ b/internal/home/dns.go @@ -231,18 +231,16 @@ func getDNSEncryption() (de dnsEncryption) { } if tlsConf.PortDNSOverTLS != 0 { - addr := net.JoinHostPort(hostname, strconv.Itoa(tlsConf.PortDNSOverTLS)) de.tls = (&url.URL{ Scheme: "tls", - Host: addr, + Host: net.JoinHostPort(hostname, strconv.Itoa(tlsConf.PortDNSOverTLS)), }).String() } if tlsConf.PortDNSOverQUIC != 0 { - addr := net.JoinHostPort(hostname, strconv.Itoa(int(tlsConf.PortDNSOverQUIC))) de.quic = (&url.URL{ Scheme: "quic", - Host: addr, + Host: net.JoinHostPort(hostname, strconv.Itoa(int(tlsConf.PortDNSOverQUIC))), }).String() } }