mirror of
https://github.com/XTLS/Xray-core.git
synced 2024-12-22 19:33:32 +02:00
Fix: sniffer call IP() on a DomainAddress
This commit is contained in:
parent
32713bcc0e
commit
de54d4b08f
1 changed files with 1 additions and 1 deletions
|
@ -196,7 +196,7 @@ func shouldOverride(ctx context.Context, result SniffResult, request session.Sni
|
|||
return true
|
||||
}
|
||||
if fakeDNSEngine != nil && protocolString != "bittorrent" && p == "fakedns" &&
|
||||
fakeDNSEngine.GetFakeIPRange().Contains(destination.Address.IP()) {
|
||||
destination.Address.Family().IsIP() && fakeDNSEngine.GetFakeIPRange().Contains(destination.Address.IP()) {
|
||||
newError("Using sniffer ", protocolString, " since the fake DNS missed").WriteToLog(session.ExportIDToError(ctx))
|
||||
return true
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue