From 16ff9e815bfc97409cb619343cd1950a137e1d03 Mon Sep 17 00:00:00 2001 From: wwqgtxx Date: Sun, 27 Jul 2025 22:30:39 +0800 Subject: [PATCH] chore: code cleanup --- dns/enhancer.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dns/enhancer.go b/dns/enhancer.go index a8c0a5ac..9ea3ae84 100644 --- a/dns/enhancer.go +++ b/dns/enhancer.go @@ -81,8 +81,8 @@ func (h *ResolverEnhancer) InsertHostByIP(ip netip.Addr, host string) { } func (h *ResolverEnhancer) FlushFakeIP() error { - if h.fakePool != nil { - return h.fakePool.FlushFakeIP() + if pool := h.fakePool; pool != nil { + return pool.FlushFakeIP() } return nil }