tproxy: optimize codes and now works properly

This commit is contained in:
nadoo committed 2021-07-19 23:06:28 +08:00
1 parent 650f1eed4e
commit 41861ff48e
7 files changed
+60 -109

No files matched your search

+1 -1
View File
@@ -120,7 +120,7 @@ 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: %s, %ds",
log.F("[dns] %s <-> %s(%s) via %s, %s/%d: %s, ttl: %ds",
clientAddr, dnsServer, network, dialerAddr, resp.Question.QNAME, resp.Question.QTYPE, strings.Join(ips, ","), ttl)
return nil