add support for X-FORWARDED-FOR header.