From 566ed821fcb66ab468ddb3833a2e4840887a9ff4 Mon Sep 17 00:00:00 2001 From: gVisor bot Date: Sat, 16 Apr 2022 09:51:31 +0800 Subject: [PATCH] fix: domain type fix Mapping --- component/sniffer/dispatcher.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/component/sniffer/dispatcher.go b/component/sniffer/dispatcher.go index dbfd3e69..42f1b2da 100644 --- a/component/sniffer/dispatcher.go +++ b/component/sniffer/dispatcher.go @@ -77,12 +77,7 @@ func (sd *SnifferDispatcher) replaceDomain(metadata *C.Metadata, host string) { metadata.AddrType = C.AtypDomainName metadata.Host = host - if resolver.FakeIPEnabled() { - metadata.DNSMode = C.DNSFakeIP - } else { - metadata.DNSMode = C.DNSMapping - } - + metadata.DNSMode = C.DNSMapping resolver.InsertHostByIP(metadata.DstIP, host) metadata.DstIP = nil }