Mercurial > hg > nginx-tests
comparison stream_ssl_realip.t @ 1190:fcd65708672d
Tests: let tests pass on travis-ci VMs with disabled IPv6 loopback.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Thu, 15 Jun 2017 19:42:26 +0300 |
parents | cdbdb75cf194 |
children | 0af58b78df35 |
comparison
equal
deleted
inserted
replaced
1189:1c703303feee | 1190:fcd65708672d |
---|---|
99 . "-out '$d/$name.crt' -keyout '$d/$name.key' " | 99 . "-out '$d/$name.crt' -keyout '$d/$name.key' " |
100 . ">>$d/openssl.out 2>&1") == 0 | 100 . ">>$d/openssl.out 2>&1") == 0 |
101 or die "Can't create certificate for $name: $!\n"; | 101 or die "Can't create certificate for $name: $!\n"; |
102 } | 102 } |
103 | 103 |
104 $t->try_run('no stream proxy_protocol')->plan(6); | 104 $t->try_run('no stream proxy_protocol or inet6 support')->plan(6); |
105 | 105 |
106 ############################################################################### | 106 ############################################################################### |
107 | 107 |
108 is(pp_get(8083, "PROXY TCP4 192.0.2.1 192.0.2.2 1234 5678${CRLF}"), | 108 is(pp_get(8083, "PROXY TCP4 192.0.2.1 192.0.2.2 1234 5678${CRLF}"), |
109 '192.0.2.1:1234', 'server'); | 109 '192.0.2.1:1234', 'server'); |