Hello, I'm using a CDN (not using the mediaserver, I mean fully not only for static files. With changed dns and stuff) and a firewall since a few days. They send SFF headers with 3 IPs : theirs, firewall's and client's (HTTP_X_FORWARDED_FOR). While discovering this, I found out that a module (that is showing prices with and without taxes) wasn't working right (it shows only the prices without taxes). I guess that's connected and I tried to figure out what IP Prestashop gives and it's never the good one.
Is there a way to force PS to use only x_forwarded_for and make sure it locates users while knowing this ?
I had a look at class/Tools.php that gives the x forwarded only if remote_addr is empty (which is a problem).
Thank you