File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ sub copy_files
4646sub configure_test_server_for_ssl
4747{
4848 my $tempdir = $_ [0];
49+ my $serverhost = $_ [1];
4950
5051 # Create test users and databases
5152 psql ' postgres' , " CREATE USER ssltestuser" ;
@@ -58,6 +59,7 @@ sub configure_test_server_for_ssl
5859 print CONF " fsync=off\n " ;
5960 print CONF " log_connections=on\n " ;
6061 print CONF " log_hostname=on\n " ;
62+ print CONF " listen_addresses='$serverhost '\n " ;
6163 print CONF " log_statement=all\n " ;
6264
6365 # enable SSL and set up server key
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ sub test_connect_fails
8484
8585diag " setting up data directory in \" $tempdir \" ..." ;
8686start_test_server($tempdir );
87- configure_test_server_for_ssl($tempdir );
87+ configure_test_server_for_ssl($tempdir , $SERVERHOSTADDR );
8888switch_server_cert($tempdir , ' server-cn-only' );
8989
9090# ## Part 1. Run client-side tests.
You can’t perform that action at this time.
0 commit comments