qenta-cee / magento2-qcp

QENTA Checkout Page extension for Magento 2
GNU General Public License v2.0
12 stars 10 forks source link

Normalize multiple client IPs in case of proxy request #10

Closed sweikenb closed 7 years ago

sweikenb commented 8 years ago

In some cases proxy server might add more than one IP to the X-Forwareded-For header so the central IP validation will fail and might cause additional issues later when processing. So I added an normalization step that makes sure only one the original (first) IP is returned. In our case this works very well.

jakubpolomsky commented 8 years ago

Thank you for your input. Actually we do it the same way in our other plugins. So thank you for your work once again. I will merge this request as soon as I get to this plugin. Have a nice day!