ws: use default port if not specified

This commit is contained in:
nadoo committed 2021-07-06 20:31:39 +08:00
1 parent 53fe94251f
commit 879e736f01
6 files changed
+13 -9

No files matched your search

+2 -2
View File
@@ -120,8 +120,8 @@ func (c *Client) handleAnswer(respBytes []byte, clientAddr, dnsServer, network,
}
c.cache.Set(qKey(resp.Question), valCopy(respBytes), ttl)
log.F("[dns] %s <-> %s(%s) via %s, %s/%d: %d %s",
clientAddr, dnsServer, network, dialerAddr, resp.Question.QNAME, resp.Question.QTYPE, ttl, strings.Join(ips, ","))
log.F("[dns] %s <-> %s(%s) via %s, %s/%d: %s, %ds",
clientAddr, dnsServer, network, dialerAddr, resp.Question.QNAME, resp.Question.QTYPE, strings.Join(ips, ","), ttl)
return nil
}