comparison stream_proxy_protocol_ipv6.t @ 618:2d9f5f439598

Tests: added stream proxy protocol availability check.
author Andrey Zelenkov <zelenkov@nginx.com>
date Mon, 29 Jun 2015 18:37:02 +0300
parents 36a267631e03
children 0016fe31be13
comparison
equal deleted inserted replaced
617:35832048546e 618:2d9f5f439598
65 } 65 }
66 66
67 EOF 67 EOF
68 68
69 $t->run_daemon(\&stream_daemon); 69 $t->run_daemon(\&stream_daemon);
70 $t->try_run('no inet6 support')->plan(2); 70 $t->try_run('no inet6 support or stream proxy_protocol')->plan(2);
71 $t->waitforsocket('127.0.0.1:8082'); 71 $t->waitforsocket('127.0.0.1:8082');
72 72
73 ############################################################################### 73 ###############################################################################
74 74
75 like(http_get('/on'), qr/PROXY TCP6 ::1 ::1 [0-9]+ 8080/, 'protocol on'); 75 like(http_get('/on'), qr/PROXY TCP6 ::1 ::1 [0-9]+ 8080/, 'protocol on');