From 80ff5917f742c80364f7fa68a8938d79edda9cd3 Mon Sep 17 00:00:00 2001 From: Skyxim Date: Mon, 2 May 2022 17:09:24 +0800 Subject: [PATCH] fix: The sniffer does not clean up the original address --- component/sniffer/dispatcher.go | 2 -- 1 file changed, 2 deletions(-) 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 {