1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-07-26 23:24:35 -04: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 {