parent
ef376b0bfd
commit
e161d2acdc
@ -0,0 +1,7 @@
|
|||||||
|
module Rack
|
||||||
|
class Request
|
||||||
|
def trusted_proxy?(ip)
|
||||||
|
Rails.application.config.action_dispatch.trusted_proxies.any? { |proxy| proxy === ip }
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in new issue