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