From dbdd6a0c953c3d32e726855fac7ccbabafb55b6d Mon Sep 17 00:00:00 2001 From: Phy Date: Sun, 20 Oct 2019 20:43:51 -0400 Subject: [PATCH] clientIP: modify test to assume trusted proxy be included in IP array --- _test/tests/inc/common_clientip.test.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_test/tests/inc/common_clientip.test.php b/_test/tests/inc/common_clientip.test.php index 99db50e3a..b06390ee4 100644 --- a/_test/tests/inc/common_clientip.test.php +++ b/_test/tests/inc/common_clientip.test.php @@ -197,7 +197,7 @@ class common_clientIP_test extends DokuWikiTest { $_SERVER['REMOTE_ADDR'] = '127.0.0.1'; $_SERVER['HTTP_X_REAL_IP'] = ''; $_SERVER['HTTP_X_FORWARDED_FOR'] = '8.8.8.8,'; - $out = '8.8.8.8,123.123.123.123'; + $out = '127.0.0.1,8.8.8.8,123.123.123.123'; $this->assertEquals($out, clientIP()); } -- 2.11.4.GIT