aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/http
diff options
context:
space:
mode:
authorAnshul Sharma <optimisticanshul@gmail.com>2015-09-03 13:09:56 +0530
committerAnshul Sharma <optimisticanshul@gmail.com>2015-09-03 14:02:52 +0530
commit9567ba737f6fb8c4e16fed471ec52bf58c2bbe13 (patch)
tree844e1885a03c640dabc8e540288e235b1b8a28b7 /actionpack/lib/action_dispatch/http
parenta62a164850f70e08970e04894d186d086bd43c50 (diff)
downloadrails-9567ba737f6fb8c4e16fed471ec52bf58c2bbe13.tar.gz
rails-9567ba737f6fb8c4e16fed471ec52bf58c2bbe13.tar.bz2
rails-9567ba737f6fb8c4e16fed471ec52bf58c2bbe13.zip
[ci skip] Added localhost IPv6
Diffstat (limited to 'actionpack/lib/action_dispatch/http')
-rw-r--r--actionpack/lib/action_dispatch/http/request.rb2
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 e6387768de..dc60fce976 100644
--- a/actionpack/lib/action_dispatch/http/request.rb
+++ b/actionpack/lib/action_dispatch/http/request.rb
@@ -358,7 +358,7 @@ module ActionDispatch
get_header('REDIRECT_X_HTTP_AUTHORIZATION')
end
- # True if the request came from localhost, 127.0.0.1.
+ # True if the request came from localhost, 127.0.0.1, or ::1.
def local?
LOCALHOST =~ remote_addr && LOCALHOST =~ remote_ip
end