mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-05-20 03:18:26 +03:00
Fix match rules
This commit is contained in:
@@ -467,7 +467,12 @@ match:
|
||||
selectedRuleIndex = currentRuleIndex
|
||||
break match
|
||||
}
|
||||
ruleIndex = currentRuleIndex
|
||||
if ruleIndex == -1 {
|
||||
ruleIndex = currentRuleIndex
|
||||
} else {
|
||||
ruleIndex += currentRuleIndex
|
||||
}
|
||||
ruleIndex++
|
||||
}
|
||||
if !preMatch && metadata.Destination.Addr.IsUnspecified() {
|
||||
newBuffer, newPacketBuffers, newErr := r.actionSniff(ctx, metadata, &rule.RuleActionSniff{}, inputConn, inputPacketConn)
|
||||
|
||||
Reference in New Issue
Block a user