2 ms·
Caddy itself has built-in support for correctly & safely parsing XFF via the trusted_proxies global option https://caddyserver.com/docs/caddyfile/options#truste
by francislavoie 3y ago
Caddy itself has built-in support for correctly & safely parsing XFF via the trusted_proxies global option https://caddyserver.com/docs/caddyfile/options#trusted-proxies https://caddyserver.com/docs/caddyfile/options#trusted-proxi... The plugin should use the parsed client IP produced by this, but the plugin was written before trusted_proxies existed in Caddy. (Not excusing the mistake, but there's an "easy" solution if someone wants to resolve it.)
- yonixwm 3y agoAgain why mention the plugin? Just use the main caddy option… plugins are ment to expand caddy not replace existing directives unless i am missing something and the plugin overrides default behavior then of course it’s to blame