diff options
author | Godfrey Chan <godfreykfc@gmail.com> | 2014-07-18 10:48:18 -0700 |
---|---|---|
committer | Godfrey Chan <godfreykfc@gmail.com> | 2014-07-18 10:48:18 -0700 |
commit | dc59a08fe74d7a6e6b789bcc775087eb94e05311 (patch) | |
tree | 3e30811477b1a74445772bf03b846b70f85d389b /actionpack/lib/action_dispatch | |
parent | 843b8c0b8c8cccd8d1432060dfc79a8edcc4ed2c (diff) | |
parent | 86433b8d5f1a7d28e0bb6ceeaf824e67acf4b759 (diff) | |
download | rails-dc59a08fe74d7a6e6b789bcc775087eb94e05311.tar.gz rails-dc59a08fe74d7a6e6b789bcc775087eb94e05311.tar.bz2 rails-dc59a08fe74d7a6e6b789bcc775087eb94e05311.zip |
Merge pull request #16221 from arthurnn/14886_pr
Cleanup + CHANGELOG for pr #14886
Diffstat (limited to 'actionpack/lib/action_dispatch')
-rw-r--r-- | actionpack/lib/action_dispatch/http/request.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/http/request.rb b/actionpack/lib/action_dispatch/http/request.rb index 01f117be99..a519d6c1fc 100644 --- a/actionpack/lib/action_dispatch/http/request.rb +++ b/actionpack/lib/action_dispatch/http/request.rb @@ -23,7 +23,7 @@ module ActionDispatch autoload :Session, 'action_dispatch/request/session' autoload :Utils, 'action_dispatch/request/utils' - LOCALHOST = Regexp.union [/^127\.0\.0\.\d{1,3}$/, /^::1$/, /^0:0:0:0:0:0:0:1(%.*)?$/] + LOCALHOST = Regexp.union [/^127\.\d{1,3}\.\d{1,3}\.\d{1,3}$/, /^::1$/, /^0:0:0:0:0:0:0:1(%.*)?$/] ENV_METHODS = %w[ AUTH_TYPE GATEWAY_INTERFACE PATH_TRANSLATED REMOTE_HOST |