1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-13 11:20:42 +00:00

Fix erroneous prefix checking

This commit is contained in:
Hork 2022-08-23 12:02:25 +01:00 committed by Xiaokang Wang (Shelikhoo)
parent f0236233f3
commit 1b0e046c99

View File

@ -182,7 +182,7 @@ func shouldOverride(result SniffResult, domainOverride []string) bool {
protocolString = resComp.ProtocolForDomainResult()
}
for _, p := range domainOverride {
if strings.HasPrefix(protocolString, p) {
if strings.HasPrefix(p, protocolString) {
return true
}
if resultSubset, ok := result.(SnifferIsProtoSubsetOf); ok {