common: remove unnecessary logs

This commit is contained in:
nadoo committed 2018-08-02 13:02:04 +08:00
1 parent 9acaff5b4a
commit 73a778f5e1
3 files changed
+2 -5

No files matched your search

+1 -1
View File
@@ -90,7 +90,7 @@ func (c *Client) Exchange(reqBytes []byte, clientAddr string, preferTCP bool) ([
}
}
// add to cache
// add to cache only when there's a valid ip address
if len(ips) != 0 {
c.cache.Put(getKey(resp.Question), respBytes, ttl)
}