diff --git a/component/sniffer/dispatcher.go b/component/sniffer/dispatcher.go index 595e15b9..909bccff 100644 --- a/component/sniffer/dispatcher.go +++ b/component/sniffer/dispatcher.go @@ -4,7 +4,6 @@ import ( "errors" "github.com/Dreamacro/clash/constant/sniffer" "net" - "net/netip" "strconv" "time" @@ -86,7 +85,6 @@ func (sd *SnifferDispatcher) replaceDomain(metadata *C.Metadata, host string) { metadata.Host = host metadata.DNSMode = C.DNSMapping resolver.InsertHostByIP(metadata.DstIP, host) - metadata.DstIP = netip.Addr{} } func (sd *SnifferDispatcher) Enable() bool {