From c44a656649ca4d198f29ea1f07fe0174ce832ccc Mon Sep 17 00:00:00 2001 From: Heesung Ahn Date: Wed, 18 Mar 2015 19:12:27 -0400 Subject: minor update Signed-off-by:Heesung Ahn --- tests/codeigniter/core/Input_test.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tests/codeigniter') diff --git a/tests/codeigniter/core/Input_test.php b/tests/codeigniter/core/Input_test.php index a632ee689..e269b1762 100644 --- a/tests/codeigniter/core/Input_test.php +++ b/tests/codeigniter/core/Input_test.php @@ -250,9 +250,10 @@ class Input_test extends CI_TestCase { $this->assertEquals('127.0.0.1', $this->input->ip_address()); $this->input->ip_address = FALSE; - $this->ci_set_config('proxy_ips', 'http://foo/bar/baz, 127.0.0.1/1'); + $this->ci_set_config('proxy_ips', 'http://foo/bar/baz, 127.0.0.2'); $_SERVER['HTTP_CLIENT_IP'] = '127.0.0.2'; - $this->assertNotEquals('127.0.0.1', $this->input->ip_address()); + $_SERVER['REMOTE_ADDR'] = '127.0.0.2'; + $this->assertEquals('127.0.0.2', $this->input->ip_address()); //IPv6 $this->input->ip_address = FALSE; -- cgit v1.2.3-24-g4f1b