Fix no_drop not work

This commit is contained in:
世界 committed 2025-04-08 14:16:23 +08:00
1 parent 991e755789
commit a15b5a2463
1 file changed
+3
+3
View File
@@ -279,6 +279,9 @@ func (r *RuleActionReject) Error(ctx context.Context) error {
default:
panic(F.ToString("unknown reject method: ", r.Method))
}
if r.NoDrop {
return returnErr
}
r.dropAccess.Lock()
defer r.dropAccess.Unlock()
timeNow := time.Now()