add access-log extensions test for non-SNI IP addr connections
@@ -173,6 +173,7 @@ subtest 'extensions' => sub {
sleep 1; # ensure check_port's SYN_ACK is delivered to the server before that generated by curl
system("curl --silent http://localhost:$server->{port}/ > /dev/null");
system("curl --silent --insecure @{[curl_supports_http2() ? ' --http1.1' : '']} https://localhost:$server->{tls_port}/ > /dev/null");
+ system("curl --silent --insecure @{[curl_supports_http2() ? ' --http1.1' : '']} https://127.0.0.1:$server->{tls_port}/ > /dev/null");
if (prog_exists("nghttp")) {
system("nghttp -n https://localhost:$server->{tls_port}/");
system("nghttp -n --weight=22 https://localhost:$server->{tls_port}/");
@@ -183,11 +184,12 @@ subtest 'extensions' => sub {
my @expected = (
qr{^2 - - - - - - -$}is,
qr{^3 TLSv[0-9.]+ 0 \S+RSA\S+ (?:128|256) localhost - -$}is,
+ qr{^4 TLSv[0-9.]+ 0 \S+RSA\S+ (?:128|256) - - -$}is,
);
if (prog_exists("nghttp")) {
push @expected, +(
- qr{^4 TLSv[0-9.]+ 0 \S+RSA\S+ (?:128|256) localhost [0-9]*[13579] 0:[0-9]+:16}is,
- qr{^5 TLSv[0-9.]+ 0 \S+RSA\S+ (?:128|256) localhost [0-9]*[13579] 0:[0-9]+:22}is,
+ qr{^5 TLSv[0-9.]+ 0 \S+RSA\S+ (?:128|256) localhost [0-9]*[13579] 0:[0-9]+:16}is,
+ qr{^6 TLSv[0-9.]+ 0 \S+RSA\S+ (?:128|256) localhost [0-9]*[13579] 0:[0-9]+:22}is,
);
}
@expected;
