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
46
46
sub configure_test_server_for_ssl
47
47
{
48
48
my $tempdir = $_ [0];
49
+ my $serverhost = $_ [1];
49
50
50
51
# Create test users and databases
51
52
psql ' postgres' , " CREATE USER ssltestuser" ;
@@ -58,6 +59,7 @@ sub configure_test_server_for_ssl
58
59
print CONF " fsync=off\n " ;
59
60
print CONF " log_connections=on\n " ;
60
61
print CONF " log_hostname=on\n " ;
62
+ print CONF " listen_addresses='$serverhost '\n " ;
61
63
print CONF " log_statement=all\n " ;
62
64
63
65
# 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
84
84
85
85
diag " setting up data directory in \" $tempdir \" ..." ;
86
86
start_test_server($tempdir );
87
- configure_test_server_for_ssl($tempdir );
87
+ configure_test_server_for_ssl($tempdir , $SERVERHOSTADDR );
88
88
switch_server_cert($tempdir , ' server-cn-only' );
89
89
90
90
# ## Part 1. Run client-side tests.
You can’t perform that action at this time.
0 commit comments