From 9567ba737f6fb8c4e16fed471ec52bf58c2bbe13 Mon Sep 17 00:00:00 2001 From: Anshul Sharma Date: Thu, 3 Sep 2015 13:09:56 +0530 Subject: [ci skip] Added localhost IPv6 --- actionpack/lib/action_dispatch/http/request.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib') 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 -- cgit v1.2.3