mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-16 03:22:22 +08:00
Fix match rules
This commit is contained in:
parent
1edb80adcc
commit
b6c940af61
|
@ -467,7 +467,12 @@ match:
|
|||
selectedRuleIndex = currentRuleIndex
|
||||
break match
|
||||
}
|
||||
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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user