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