fix: domain type fix Mapping
This commit is contained in:
parent
181d213321
commit
566ed821fc
1 changed files with 1 additions and 6 deletions
|
@ -77,12 +77,7 @@ func (sd *SnifferDispatcher) replaceDomain(metadata *C.Metadata, host string) {
|
||||||
|
|
||||||
metadata.AddrType = C.AtypDomainName
|
metadata.AddrType = C.AtypDomainName
|
||||||
metadata.Host = host
|
metadata.Host = host
|
||||||
if resolver.FakeIPEnabled() {
|
metadata.DNSMode = C.DNSMapping
|
||||||
metadata.DNSMode = C.DNSFakeIP
|
|
||||||
} else {
|
|
||||||
metadata.DNSMode = C.DNSMapping
|
|
||||||
}
|
|
||||||
|
|
||||||
resolver.InsertHostByIP(metadata.DstIP, host)
|
resolver.InsertHostByIP(metadata.DstIP, host)
|
||||||
metadata.DstIP = nil
|
metadata.DstIP = nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue