Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 689c58f

Browse files
committed
chore: clear dstIP when overrideDest in sniffer
1 parent 33590c4 commit 689c58f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

component/sniffer/dispatcher.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ func replaceDomain(metadata *C.Metadata, host string, overrideDest bool) {
152152
metadata.RemoteAddress(),
153153
metadata.Host, host)
154154
metadata.Host = host
155+
metadata.DstIP = netip.Addr{}
155156
}
156157
metadata.DNSMode = C.DNSNormal
157158
}

0 commit comments

Comments
 (0)