Mercurial > hg > nginx-tests
comparison realip.t @ 590:dc2f8aac0553
Tests: whitespace fixes.
author | Andrey Zelenkov <zelenkov@nginx.com> |
---|---|
date | Tue, 26 May 2015 13:22:45 +0300 |
parents | a9621dbbd0d4 |
children | a894f041244e |
comparison
equal
deleted
inserted
replaced
589:a9569f57da98 | 590:dc2f8aac0553 |
---|---|
69 | 69 |
70 ############################################################################### | 70 ############################################################################### |
71 | 71 |
72 like(http_xff('/1', '192.0.2.1'), qr/^X-IP: 192.0.2.1/m, 'realip'); | 72 like(http_xff('/1', '192.0.2.1'), qr/^X-IP: 192.0.2.1/m, 'realip'); |
73 like(http_xff('/1', '10.0.0.1, 192.0.2.1'), qr/^X-IP: 192.0.2.1/m, | 73 like(http_xff('/1', '10.0.0.1, 192.0.2.1'), qr/^X-IP: 192.0.2.1/m, |
74 'realip multi'); | 74 'realip multi'); |
75 like(http_xff('/1', '192.0.2.1, 10.0.1.1, 127.0.0.1'), | 75 like(http_xff('/1', '192.0.2.1, 10.0.1.1, 127.0.0.1'), |
76 qr/^X-IP: 127.0.0.1/m, 'realip recursive off'); | 76 qr/^X-IP: 127.0.0.1/m, 'realip recursive off'); |
77 like(http_xff('/2', '10.0.1.1, 192.0.2.1, 127.0.0.1'), | 77 like(http_xff('/2', '10.0.1.1, 192.0.2.1, 127.0.0.1'), |
78 qr/^X-IP: 192.0.2.1/m, 'realip recursive on'); | 78 qr/^X-IP: 192.0.2.1/m, 'realip recursive on'); |
79 | 79 |