mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2025-02-17 02:19:51 +03:00
parent
b5121c5754
commit
8411de8887
1 changed files with 11 additions and 1 deletions
|
@ -499,8 +499,18 @@ func (s *Server) handlePacket(p []byte, addr net.Addr, conn *net.UDPConn) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
// query logging and stats counters
|
// query logging and stats counters
|
||||||
if s.QueryLogEnabled {
|
//
|
||||||
|
|
||||||
|
shouldLog := true
|
||||||
|
|
||||||
|
// don't log ANY request if refuseAny is enabled
|
||||||
|
if len(msg.Question) >= 1 && msg.Question[0].Qtype == dns.TypeANY && s.RefuseAny {
|
||||||
|
shouldLog = false
|
||||||
|
}
|
||||||
|
|
||||||
|
if s.QueryLogEnabled && shouldLog {
|
||||||
elapsed := time.Since(start)
|
elapsed := time.Since(start)
|
||||||
upstreamAddr := ""
|
upstreamAddr := ""
|
||||||
if upstream != nil {
|
if upstream != nil {
|
||||||
|
|
Loading…
Add table
Reference in a new issue