Fix auto redirect pre-match and L3 forwarding

This commit is contained in:
世界
2026-09-10 14:59:10 +08:00
parent 70d0ba7279
commit 8d0500eded
3 changed files with 6 additions and 3 deletions
+3
View File
@@ -403,6 +403,9 @@ func (r *Router) PreMatch(metadata adapter.InboundContext, firstPacket []byte) a
return result
case *R.RuleActionReject:
rejectErr := action.Error(r.ctx)
if rejectErr == nil && metadata.Network == N.NetworkICMP {
return continueResult
}
if errors.Is(rejectErr, R.ErrDrop) {
return adapter.PreMatchResult{Action: adapter.PreMatchDrop}
}