Skip to content

Commit 1b0e046

Browse files
iusearchxiaokangwang
authored andcommitted
Fix erroneous prefix checking
1 parent f023623 commit 1b0e046

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/dispatcher/default.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ func shouldOverride(result SniffResult, domainOverride []string) bool {
182182
protocolString = resComp.ProtocolForDomainResult()
183183
}
184184
for _, p := range domainOverride {
185-
if strings.HasPrefix(protocolString, p) {
185+
if strings.HasPrefix(p, protocolString) {
186186
return true
187187
}
188188
if resultSubset, ok := result.(SnifferIsProtoSubsetOf); ok {

0 commit comments

Comments
 (0)