Simple gem that extends Rails request.remote_ip
to default to Fly's Fly-Client-IP
header. More about Fly HTTP Request Headers and why we choose to trust Fly-Client-IP
.
Add this line to your Rails application's Gemfile:
gem 'actionpack-fly'
None! Just install and feel confident that request.remote_ip
is doing its job.
The gem is available as open source under the terms of the MIT License.
Forked from https://github.com/customink/actionpack-cloudflare