I have a case where I need to determine whether or not a request is coming
from a trusted proxy, so I'm passing the IP address wfIsTrustedProxy(). In
order to get the correct IP address to check, I need to pull the IP address
from the remote_addr header. WebRequest::getRawIP() already does this, but
it's a protected method, so I've gone ahead and duplicated the
functionality for myself, but that always makes me feel weird. Is there any
reason not to make it a public method instead? I imagine there are other
cases where this would also be useful.
--
Arthur Richards
Software Engineer, Mobile
[[User:Awjrichards]]
IRC: awjr
+1-415-839-6885 x6687