The function get_ip doesn't check if the request is being forwarded

A request will get forwarded on a site that is using a CDN like CloudFlare. The code checks if the request has a forwarded IP Address. If it does not have a forwarded IP Address it will just use the plain old remote address.