Support non-standard X-Real-IP header
More small formatting fixes