mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-09-07 20:45:19 -04:00
Fix erroneous prefix checking
This commit is contained in:
parent
f0236233f3
commit
1b0e046c99
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user