Skip to content

Commit 4521150

Browse files
committed
Tests: improved "ssl" directive test in ssl_reject_handshake.t.
The "ssl" option was removed from listening sockets in non-default servers. In particular, this allows to test that the "ssl" directive actually works.
1 parent c637872 commit 4521150

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ssl_reject_handshake.t

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ http {
5959
}
6060
6161
server {
62-
listen 127.0.0.1:8080 ssl;
63-
listen 127.0.0.1:8081 ssl;
62+
listen 127.0.0.1:8080;
63+
listen 127.0.0.1:8081;
6464
server_name virtual;
6565
6666
ssl_certificate localhost.crt;
@@ -76,12 +76,12 @@ http {
7676
}
7777
7878
server {
79-
listen 127.0.0.1:8082 ssl;
79+
listen 127.0.0.1:8082;
8080
server_name virtual1;
8181
}
8282
8383
server {
84-
listen 127.0.0.1:8082 ssl;
84+
listen 127.0.0.1:8082;
8585
server_name virtual2;
8686
8787
ssl_reject_handshake on;

0 commit comments

Comments
 (0)