comparison roundup/scripts/roundup_server.py @ 7701:5a35cfee727a

doc: use 'TEST-NET' IPv4 or IPv6 IP address ranges from RFC 6890 Replace ip examples with test doc ip addresses for any address not in 127.0.0.1 or 0.0.0.0.
author John Rouillard <rouilj@ieee.org>
date Tue, 14 Nov 2023 16:53:56 -0500
parents 91fad2d2c4b3
children 216662fbaaee
comparison
equal deleted inserted replaced
7700:939e2edeab40 7701:5a35cfee727a
473 # X-Forwarded-For: clientIP, proxy1IP, proxy2IP 473 # X-Forwarded-For: clientIP, proxy1IP, proxy2IP
474 # May not be trustworthy. Do not use in core without 474 # May not be trustworthy. Do not use in core without
475 # config option to control its use. 475 # config option to control its use.
476 # Made available for extensions if the user trusts it. 476 # Made available for extensions if the user trusts it.
477 # E.g. you may wish to disable recaptcha validation extension 477 # E.g. you may wish to disable recaptcha validation extension
478 # if the ip of the client matches 172.16.0.0. 478 # if the ip of the client matches 198.51.100.X
479 env['HTTP_X_FORWARDED_FOR'] = xff 479 env['HTTP_X_FORWARDED_FOR'] = xff
480 xfp = self.headers.get('X-Forwarded-Proto', None) 480 xfp = self.headers.get('X-Forwarded-Proto', None)
481 if xfp: 481 if xfp:
482 # xfp is the protocol (http/https) seen by proxies in the 482 # xfp is the protocol (http/https) seen by proxies in the
483 # path of the request. I am not sure if there is only 483 # path of the request. I am not sure if there is only

Roundup Issue Tracker: http://roundup-tracker.org/