Fixed bug with getClientIp and localhost