From c5a4dea8cf7c15026352164b00c3d92eab072dc9 Mon Sep 17 00:00:00 2001 From: epriestley Date: Sun, 15 Sep 2019 06:59:14 -0700 Subject: [PATCH] Fix a typo in preamble X-Forwarded-For psuedocode Summary: This psueudocode should use the result of computation at the end. Test Plan: Read carefully. Differential Revision: https://secure.phabricator.com/D20813 --- src/docs/user/configuration/configuring_preamble.diviner | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/docs/user/configuration/configuring_preamble.diviner b/src/docs/user/configuration/configuring_preamble.diviner index 5299afa27d..6b6b9da149 100644 --- a/src/docs/user/configuration/configuring_preamble.diviner +++ b/src/docs/user/configuration/configuring_preamble.diviner @@ -82,7 +82,7 @@ if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) { $real_address = your_custom_parsing_function($raw_header); - $_SERVER['REMOTE_ADDR'] = $raw_header; + $_SERVER['REMOTE_ADDR'] = $real_address; } ```