XF 2.3 What field is used for IP address?

stromb0li

Well-known member
My search fu is failing me. In config.php, which property do I need to set to adjust what IP address is written in the user log? I have two proxies inline, so I'd like to set the IP address that xenforo uses to be a value from a header the proxy creates of the original requestor's IP address.
 
Solution
For those searching, it looks like you have to override / set $_SERVER['REMOTE_ADDR'] if you want xenforo to use a different address; there isn't a $config property specifically to set. The list of supported properties to be set can be found in /src/XF/app.php.
For those searching, it looks like you have to override / set $_SERVER['REMOTE_ADDR'] if you want xenforo to use a different address; there isn't a $config property specifically to set. The list of supported properties to be set can be found in /src/XF/app.php.
 
Solution
Back
Top Bottom