Ensure that the list of trusted proxies also contains the IP addresses of those proxies. Otherwise the detection might not work