Added support for HTTP_X_FORWARDED_FOR