Added support for X-Forwarded-For header