Hi web2py big family,

I thought I had been using web2py for long enough but, still got stumbled 
by this little issue. :-)

I setup web2py behind apache (using the default setup script on 
webfaction.com, if that matters). My site works, except the 
request.is_local is always True. Here comes some of my request attributes:

 
env:
remote_addr:
127.0.0.1

http_x_forwarded_for:
70.184.77.217


client:
70.184.77.217



local_hosts:
 (it contains no 70.184.77.217)

is_local:
True


Checking the source code, it reads:

    is_local = env.remote_addr in local_hosts

So it gives me a "True".

But shouldn't we change it into "is_loca = client in local_hosts" so that 
it would be False in this situation?


Thanks in advance




-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to