Skip to content

Commit

Permalink
home: imp code
Browse files Browse the repository at this point in the history
  • Loading branch information
ainar-g committed Jan 26, 2021
1 parent 4f39665 commit 98b222b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 2 additions & 1 deletion internal/home/clients.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
6 changes: 2 additions & 4 deletions internal/home/dns.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}
Expand Down

0 comments on commit 98b222b

Please sign in to comment.