Re: best way to get user's IP address in pylons?

2008-07-03 Thread Wichert Akkerman
Previously Chris AtLee wrote: On Thu, Jul 3, 2008 at 1:04 PM, kevin [EMAIL PROTECTED] wrote: hello, hope all is well. i'm wondering what the best way to get a user's IP address is? because the reCaptcha verification wants the remote IP. I know I can get request.host and

Re: best way to get user's IP address in pylons?

2008-07-03 Thread Jonathan Vanasco
On Jul 3, 4:42 pm, Wichert Akkerman [EMAIL PROTECTED] wrote: Possibly better:   request.environ.get(X_FORWARDED_FOR, request.environ[REMOTE_ADDR]) maybe someone can make a middleware or pylons patch + config setting that migrates X_FORWARDED_FOR to REMOTE_ADDR this is the one i maintain for

Re: best way to get user's IP address in pylons?

2008-07-03 Thread Ian Bicking
Jonathan Vanasco wrote: On Jul 3, 4:42 pm, Wichert Akkerman [EMAIL PROTECTED] wrote: Possibly better: request.environ.get(X_FORWARDED_FOR, request.environ[REMOTE_ADDR]) maybe someone can make a middleware or pylons patch + config setting that migrates X_FORWARDED_FOR to REMOTE_ADDR

Re: best way to get user's IP address in pylons?

2008-07-03 Thread Wichert Akkerman
Previously Jonathan Vanasco wrote: On Jul 3, 4:42 pm, Wichert Akkerman [EMAIL PROTECTED] wrote: Possibly better:   request.environ.get(X_FORWARDED_FOR, request.environ[REMOTE_ADDR]) maybe someone can make a middleware or pylons patch + config setting that migrates X_FORWARDED_FOR to

Re: best way to get user's IP address in pylons?

2008-07-03 Thread Ian Bicking
Shannon -jj Behrens wrote: On Thu, Jul 3, 2008 at 2:05 PM, Ian Bicking [EMAIL PROTECTED] wrote: Jonathan Vanasco wrote: On Jul 3, 4:42 pm, Wichert Akkerman [EMAIL PROTECTED] wrote: Possibly better: request.environ.get(X_FORWARDED_FOR, request.environ[REMOTE_ADDR]) maybe someone can make