Home
last modified time | relevance | path

Searched refs:xff (Results 1 – 3 of 3) sorted by relevance

/unit/test/
H A Dtest_forwarded_header.py22 def get_fwd(self, sock_type='ipv4', xff=None, xfp=None): argument
27 if xff is not None:
28 headers['X-Forwarded-For'] = xff
55 resp = self.get_fwd(xff='1.1.1.1', xfp='https')
61 assert self.get_addr(xff='1.1.1.1') == '127.0.0.1', 'bad source'
62 assert self.get_addr(xff='blah') == '127.0.0.1', 'bad xff'
79 resp = self.get_fwd(xff='1.1.1.1', xfp='https')
119 self.get_addr(xff='8.8.8.8, 84.23.23.11') == '84.23.23.11'
169 assert self.get_addr(xff='1.1.1.1') == '1.1.1.1', 'xff chain'
171 self.get_addr(xff='1.1.1.1, 10.5.2.1') == '1.1.1.1'
[all …]
H A Dtest_unix_abstract.py49 def get_xff(xff, sock_type='ipv4'): argument
61 headers={'Connection': 'close', 'X-Forwarded-For': xff},
H A Dtest_client_ip.py29 def get_xff(self, xff, sock_type='ipv4'): argument
41 headers={'Connection': 'close', 'X-Forwarded-For': xff},