mirror of
https://github.com/nadoo/glider.git
synced 2026-11-19 07:09:42 +08:00
tproxy: optimize codes and now works properly
This commit is contained in:
1 parent
650f1eed4e
commit
41861ff48e
7 files changed
+60
-109
No files matched your search
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user