From 40417f5a6fccdbc1d8f12b3ba8bd917baa87ed8a Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 17 Mar 2010 13:58:45 +0000 Subject: - Patch #258397 by John Morahan, Dries, R.Muilwijk, Bart Jansens, grendzy, Berdir: IP address identification not broad enough. --- modules/simpletest/tests/bootstrap.test | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/simpletest') diff --git a/modules/simpletest/tests/bootstrap.test b/modules/simpletest/tests/bootstrap.test index 0a165b5e1..9ab2c8382 100644 --- a/modules/simpletest/tests/bootstrap.test +++ b/modules/simpletest/tests/bootstrap.test @@ -70,7 +70,8 @@ class BootstrapIPAddressTestCase extends DrupalWebTestCase { t('Proxy forwarding with trusted proxy got forwarded IP address') ); - // Cluster environment. + // Custom client-IP header. + variable_set('reverse_proxy_header', 'HTTP_X_CLUSTER_CLIENT_IP'); $_SERVER['HTTP_X_CLUSTER_CLIENT_IP'] = $this->cluster_ip; drupal_static_reset('ip_address'); $this->assertTrue( -- cgit v1.2.3