diff --git a/docs/content/middlewares/http/inflightreq.md b/docs/content/middlewares/http/inflightreq.md index 8095ccd15..f2f76a3cb 100644 --- a/docs/content/middlewares/http/inflightreq.md +++ b/docs/content/middlewares/http/inflightreq.md @@ -115,7 +115,7 @@ http: ### `sourceCriterion` The `sourceCriterion` option defines what criterion is used to group requests as originating from a common source. -The precedence order is `ipStrategy`, then `requestHeaderName`, then `requestHost`. +If several strategies are defined at the same time, an error will be raised. If none are set, the default is to use the `requestHost`. #### `sourceCriterion.ipStrategy` diff --git a/docs/content/middlewares/http/ratelimit.md b/docs/content/middlewares/http/ratelimit.md index 8c382de10..7c8a45906 100644 --- a/docs/content/middlewares/http/ratelimit.md +++ b/docs/content/middlewares/http/ratelimit.md @@ -250,7 +250,7 @@ http: ### `sourceCriterion` The `sourceCriterion` option defines what criterion is used to group requests as originating from a common source. -The precedence order is `ipStrategy`, then `requestHeaderName`, then `requestHost`. +If several strategies are defined at the same time, an error will be raised. If none are set, the default is to use the request's remote address field (as an `ipStrategy`). #### `sourceCriterion.ipStrategy`