TrustedProxyCheck = true by default

This commit is contained in:
Laptop
2024-10-05 20:29:07 +03:00
parent 640877e104
commit e0b8f3e956

View File

@@ -37,7 +37,7 @@ const Prefork = false
// use X-Forwarded-* headers ONLY when ip is in TrustedProxies list // use X-Forwarded-* headers ONLY when ip is in TrustedProxies list
// when disabled, the X-Forwarded-* headers will be blindly used // 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) // list of ips or ip ranges of trusted proxies (check above)
var TrustedProxies = []string{} var TrustedProxies = []string{}