mirror of
https://github.com/kikobar/mastodon.git
synced 2024-11-18 05:12:18 +00:00
8 lines
166 B
Ruby
8 lines
166 B
Ruby
module Rack
|
|
class Request
|
|
def trusted_proxy?(ip)
|
|
Rails.application.config.action_dispatch.trusted_proxies.any? { |proxy| proxy === ip }
|
|
end
|
|
end
|
|
end
|