~jimpop/mailman/forwarded_for

« back to all changes in this revision

Viewing changes to Mailman/Cgi/listinfo.py

  • Committer: Jim Popovitch
  • Date: 2015-06-23 18:22:53 UTC
  • Revision ID: jimpop@gmail.com-20150623182253-kkh0kh8zvjn7h3of
Added a missing closing parenthesis 

Show diffs side-by-side

added added

removed removed

Lines of Context:
190
190
        remote = os.environ.get('HTTP_FORWARDED_FOR',
191
191
                 os.environ.get('HTTP_X_FORWARDED_FOR',
192
192
                 os.environ.get('REMOTE_ADDR',
193
 
                                'w.x.y.z'))
 
193
                                'w.x.y.z')))
194
194
        # Try to accept a range in case of load balancers, etc.  (LP: #1447445)
195
195
        if remote.find('.') >= 0:
196
196
            # ipv4 - drop last octet