mirror of
https://github.com/alibaba/higress.git
synced 2026-06-08 04:07:31 +08:00
Disable reroute in some plugins (#2639)
This commit is contained in:
@@ -87,6 +87,7 @@ func parseConfig(json gjson.Result, cfg *config.ClusterKeyRateLimitConfig) error
|
||||
}
|
||||
|
||||
func onHttpRequestHeaders(ctx wrapper.HttpContext, config config.ClusterKeyRateLimitConfig) types.Action {
|
||||
ctx.DisableReroute()
|
||||
limitKey, count, timeWindow := "", int64(0), int64(0)
|
||||
|
||||
if config.GlobalThreshold != nil {
|
||||
|
||||
Reference in New Issue
Block a user