修复统计数据异常的问题

This commit is contained in:
Alex Yang
2025-11-30 01:25:45 +08:00
parent e800ad1774
commit 48b2f27090
3 changed files with 111 additions and 54 deletions

View File

@@ -366,11 +366,6 @@ func (s *Server) handleBlockedResponse(w dns.ResponseWriter, r *dns.Msg, domain
// 更新被屏蔽域名统计
s.updateBlockedDomainStats(domain)
// 更新总体统计
s.updateStats(func(stats *Stats) {
stats.Blocked++
})
response := new(dns.Msg)
response.SetReply(r)
response.RecursionAvailable = true