I am running Dokuwiki on a domain that is behind Cloudflare which makes it not possible to know the addresses of the proxies since that changes all the time due to regional load balancing (probably 10-20) so I cannot put that into trustedproxy.
I fixed that by removing the check in clientIP() to simply remove the first entry and ignore it, it would be great if that could be done an option for the proxy config.