comparison stream_ssl_realip.t @ 1171:cdbdb75cf194

Tests: dropped try_run() checks for hosts without IPv6 support. Tests for geoip are special as they depend on IPv6 support in the GeoIP library.
author Sergey Kandaurov <pluknet@nginx.com>
date Thu, 04 May 2017 14:31:10 +0300
parents cf14cfe9ec8c
children fcd65708672d
comparison
equal deleted inserted replaced
1170:cf14cfe9ec8c 1171:cdbdb75cf194
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 and/or inet6 support')->plan(6); 104 $t->try_run('no stream proxy_protocol')->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');