Module: CloudflareRails::RemoteIpProxies
- Defined in:
- lib/cloudflare_rails/remote_ip_proxies.rb
Overview
patch ActionDispatch::RemoteIP to use our cloudflare ips - this way request.remote_ip is correct inside of rails
Instance Method Summary collapse
Instance Method Details
#proxies ⇒ Object
7 8 9 |
# File 'lib/cloudflare_rails/remote_ip_proxies.rb', line 7 def proxies super + Importer.cloudflare_ips end |