On Thu, Jul 3, 2008 at 1:42 PM, Wichert Akkerman <[EMAIL PROTECTED]> wrote:
> Possibly better:
>
> request.environ.get("X_FORWARDED_FOR", request.environ["REMOTE_ADDR"])
It's actually HTTP_X_FORWARDED_FOR, not X_FORWARDED_FOR, at least on
my Apache 2.2 server.
--
Mike Orr <[EMAIL PROTECTED]>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---