mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
f9a84bb236
Refactored IP address checking in ActionDispatch::RemoteIp to rely on the IPAddr class instead of the unwieldly regular expression to match IP addresses. This commit keeps the same api but allows users to pass IPAddr objects to config.action_dispatch.trusted_proxies in addition to passing strings and regular expressions. Example: # config/environments/production.rb config.action_dispatch.trusted_proxies = IPAddr.new('4.8.15.0/16') |
||
---|---|---|
.. | ||
cache_test.rb | ||
cookies_test.rb | ||
exceptions_test.rb | ||
remote_ip_test.rb | ||
sendfile_test.rb | ||
session_test.rb | ||
static_test.rb |