From e0b8f3e956b382a2e2c22686fc7b1f8843fc86e8 Mon Sep 17 00:00:00 2001 From: Laptop Date: Sat, 5 Oct 2024 20:29:07 +0300 Subject: [PATCH] TrustedProxyCheck = true by default --- lib/cfg/init.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cfg/init.go b/lib/cfg/init.go index 9652c6c..1640ce9 100644 --- a/lib/cfg/init.go +++ b/lib/cfg/init.go @@ -37,7 +37,7 @@ const Prefork = false // use X-Forwarded-* headers ONLY when ip is in TrustedProxies list // when disabled, the X-Forwarded-* headers will be blindly used -const TrustedProxyCheck = false +const TrustedProxyCheck = true // list of ips or ip ranges of trusted proxies (check above) var TrustedProxies = []string{}