Fix no_drop not work

This commit is contained in:
世界 2025-04-06 19:51:24 +08:00
parent 991e755789
commit a15b5a2463
No known key found for this signature in database
GPG Key ID: CD109927C34A63C4

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()