Browse Source

Fix erroneous prefix checking

Hork 3 years ago
parent
commit
1b0e046c99
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/dispatcher/default.go

+ 1 - 1
app/dispatcher/default.go

@@ -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 {