Open
Description
Describe the bug
According to the standard the first non-local address should be selected https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/X-Forwarded-For#selecting_an_ip_address
According to the implementation the first address is selected
cphalcon/phalcon/Http/Request.zep
Line 237 in 7a3b54d
To Reproduce
Steps to reproduce the behavior:
Open the website with Phalcon through any proxy
echo $this->request->getClientAddress(true);
Actual behavior
Local IP may be returned
Expected behavior
Non-local IP should be returned