diff options
author | Prem Sichanugrist <s@sikachu.com> | 2010-06-06 16:56:48 -0400 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-06-08 19:45:40 +0200 |
commit | c6ad64394b927a64a221a89087ec1ea7d666ed55 (patch) | |
tree | 99e84fc6b34732caf2ccf0f09ea3d4909683b915 /actionpack/test | |
parent | a7edddf605d2ffbb6669365dcd23d6e4c6c2cf84 (diff) | |
download | rails-c6ad64394b927a64a221a89087ec1ea7d666ed55.tar.gz rails-c6ad64394b927a64a221a89087ec1ea7d666ed55.tar.bz2 rails-c6ad64394b927a64a221a89087ec1ea7d666ed55.zip |
Make sure that rails recognized the full notation of IPv6 loopback address, and recognize 127.0.0.0/8 in IPv4
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/dispatch/show_exceptions_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/test/dispatch/show_exceptions_test.rb b/actionpack/test/dispatch/show_exceptions_test.rb index b447b0715c..4966527f4d 100644 --- a/actionpack/test/dispatch/show_exceptions_test.rb +++ b/actionpack/test/dispatch/show_exceptions_test.rb @@ -53,7 +53,7 @@ class ShowExceptionsTest < ActionController::IntegrationTest test "rescue locally from a local request" do @app = ProductionApp - ['127.0.0.1', '::1'].each do |ip_address| + ['127.0.0.1', '127.0.0.127', '::1', '0:0:0:0:0:0:0:1', '0:0:0:0:0:0:0:1%0'].each do |ip_address| self.remote_addr = ip_address get "/", {}, {'action_dispatch.show_exceptions' => true} |