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