Pull request 2121: 6584-stats-non-anonymized-ips
Squashed commit of the following: commit 4767b7bf61a277f20d8326783cc44de1b736de3d Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Dec 27 14:30:10 2023 +0300 all: fix non-anonymized ips in stats
This commit is contained in:
@@ -25,10 +25,10 @@ func (s *Server) processQueryLogsAndStats(dctx *dnsContext) (rc resultCode) {
|
||||
|
||||
ip := pctx.Addr.Addr().AsSlice()
|
||||
s.anonymizer.Load()(ip)
|
||||
ipStr := net.IP(ip).String()
|
||||
|
||||
log.Debug("dnsforward: client ip for stats and querylog: %s", ip)
|
||||
log.Debug("dnsforward: client ip for stats and querylog: %s", ipStr)
|
||||
|
||||
ipStr := pctx.Addr.Addr().String()
|
||||
ids := []string{ipStr, dctx.clientID}
|
||||
qt, cl := q.Qtype, q.Qclass
|
||||
|
||||
|
||||
Reference in New Issue
Block a user