swoole-bundle icon indicating copy to clipboard operation
swoole-bundle copied to clipboard

Fix overwriting trusted hosts / proxies

Open jkatruska opened this issue 3 weeks ago • 0 comments

Symfony loads its values first when booted, then it starts registering bundles and this bundle overwrites config from

framework:
    trusted_proxies:

The code in this bundle in SetRequestRuntimeConfiguration works when this value is not being set in config.

I tried writing tests but I need to somehow hook into container to get request so I can call::getTrustedProxies() on that, but I didn't find a way to do that. I've tested it in real application and it works there

jkatruska avatar Nov 25 '25 13:11 jkatruska