Skip to content

Commit 7264750

Browse files
dyhkwongyuhan6665
authored andcommitted
fix typo in default.go
1 parent f7c20b8 commit 7264750

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
@@ -195,7 +195,7 @@ func (d *DefaultDispatcher) shouldOverride(ctx context.Context, result SniffResu
195195
protocolString = resComp.ProtocolForDomainResult()
196196
}
197197
for _, p := range request.OverrideDestinationForProtocol {
198-
if strings.HasPrefix(protocolString, p) || strings.HasPrefix(protocolString, p) {
198+
if strings.HasPrefix(protocolString, p) || strings.HasPrefix(p, protocolString) {
199199
return true
200200
}
201201
if fkr0, ok := d.fdns.(dns.FakeDNSEngineRev0); ok && protocolString != "bittorrent" && p == "fakedns" &&

0 commit comments

Comments
 (0)