Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app.go
diff options
context:
space:
mode:
authorJaime Martinez <jmartinez@gitlab.com>2021-10-13 03:35:45 +0300
committerJaime Martinez <jmartinez@gitlab.com>2021-10-14 09:01:02 +0300
commit88e1154f726aba6e3a36ad3f31cd78fa3c9313c5 (patch)
treed469637c5036c06293a478068566b7eb8c9d0fdd /app.go
parentd21ad4d3f334774bbbcd9a586c7bdfd32a0ae804 (diff)
refactor: remove WithProxied setting
Diffstat (limited to 'app.go')
-rw-r--r--app.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/app.go b/app.go
index 27094cff..af166e72 100644
--- a/app.go
+++ b/app.go
@@ -267,7 +267,6 @@ func (a *theApp) buildHandlerPipeline() (http.Handler, error) {
rl := ratelimiter.New(
ratelimiter.WithSourceIPLimitPerSecond(a.config.RateLimit.SourceIPLimitPerSecond),
ratelimiter.WithSourceIPBurstSize(a.config.RateLimit.SourceIPBurst),
- ratelimiter.WithProxied(len(a.config.Listeners.Proxy) > 0),
)
handler = rl.SourceIPLimiter(handler)