Project: mule
Issue MULE-7263: MULE_REMOTE_CLIENT_ADDRESS variable gets the wrong value when http requests are proxied
If an http request is proxied, the MULE_REMOTE_CLIENT_ADDRESS will have the address of the proxy instead of the client address. The X-Forwarded-For header contains a comma separated list of addresses, the first of which is the original client. Mule should look if the http headers contain an X-Forwarded-For header, and in such case populate the MULE_REMOTE_CLIENT_ADDRESS from it's first element if such element is a valid IP address. Additionally, when this situation is detected, add a new INBOUND property called MULE_PROXY_ADDRESS that contains the proxy address
Story points: 5