[wp-trac] Re: [WordPress Trac] #9235: Extract real IP behind a load
balancer
WordPress Trac
wp-trac at lists.automattic.com
Thu Jun 11 18:02:12 GMT 2009
#9235: Extract real IP behind a load balancer
-------------------------------+--------------------------------------------
Reporter: Denis-de-Bernardy | Owner: Denis-de-Bernardy
Type: enhancement | Status: accepted
Priority: normal | Milestone: 2.9
Component: Optimization | Version: 2.7
Severity: normal | Keywords: needs-patch early
-------------------------------+--------------------------------------------
Comment(by Denis-de-Bernardy):
We could also use a define, actually. It would make things even easier. As
in:
{{{
// add a WP_REMOTE_ADDR in your wp-config.php
if ( !defined('WP_REMOTE_ADDR') ) {
// run our best guess as what the IP is
}
}}}
That way, users can override the WP procedure if it doesn't work for them.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9235#comment:14>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list