mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2025-01-11 00:31:34 +01: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
|