Changeset 3951
- Timestamp:
- 01/16/08 08:20:06 (11 months ago)
- Files:
-
- tags/1.0.3.4/turbogears/identity/conditions.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
tags/1.0.3.4/turbogears/identity/conditions.py
r2845 r3951 167 167 def _remoteHost(): 168 168 try: 169 ips= cherrypy.request.headers.get( "X-Forwarded-For", 170 cherrypy.request.remote_host ) 169 ips= cherrypy.request.headers.get( 170 "X-Forwarded-For", cherrypy.request.headers.get('Remote-Addr')) 171 171 172 return ips.split(",")[-1].strip() 172 173 except: 174 173 175 return "" 174 176