mirror of
https://github.com/mastodon/mastodon
synced 2024-11-24 23:26:22 +09: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
|