Skip to content
Snippets Groups Projects
Commit 956da43e authored by Eugen's avatar Eugen Committed by GitHub
Browse files

Fix error

parent cea9fb31
No related branches found
No related tags found
No related merge requests found
module Rack
class Request
def trusted_proxy?(ip)
Rails.application.config.action_dispatch.trusted_proxies.any? { |proxy| proxy === ip }
if Rails.application.config.action_dispatch.trusted_proxies.nil?
super
else
Rails.application.config.action_dispatch.trusted_proxies.any? { |proxy| proxy === ip }
end
end
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment