Module: RackCustomProxies::ClassMethods
- Defined in:
- lib/rack-custom-proxies.rb
Instance Method Summary collapse
Instance Method Details
#trusted_proxies ⇒ Object
3 4 5 6 7 8 |
# File 'lib/rack-custom-proxies.rb', line 3 def trusted_proxies @trusted_proxies ||= begin set = ENV['RACK_TRUSTED_PROXIES'] || "127.0.0.1/32 ::1" set.split(/\s+/).map { |i| IPAddr.new(i) } end end |