diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-03-17 13:58:45 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-03-17 13:58:45 +0000 |
commit | 40417f5a6fccdbc1d8f12b3ba8bd917baa87ed8a (patch) | |
tree | 35cc34f6dc9db7314433c28f2b17b3ccfd51130b /modules/simpletest | |
parent | 50040920bf0d1beebe36e333ab8426845a7e0f68 (diff) | |
download | brdo-40417f5a6fccdbc1d8f12b3ba8bd917baa87ed8a.tar.gz brdo-40417f5a6fccdbc1d8f12b3ba8bd917baa87ed8a.tar.bz2 |
- Patch #258397 by John Morahan, Dries, R.Muilwijk, Bart Jansens, grendzy, Berdir: IP address identification not broad enough.
Diffstat (limited to 'modules/simpletest')
-rw-r--r-- | modules/simpletest/tests/bootstrap.test | 3 |
1 files changed, 2 insertions, 1 deletions
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( |