Browse Source

Fix `no_drop` not work

世界 7 months ago
parent
commit
a15b5a2463
1 changed files with 3 additions and 0 deletions
  1. 3 0
      route/rule/rule_action.go

+ 3 - 0
route/rule/rule_action.go

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