Fix private function getClientIp()