Skip to content

Commit ab32a40

Browse files
committed
Fix SSL tests
These were accidentally broken by the great backpatching of 331828b.
1 parent 196870f commit ab32a40

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/test/ssl/ServerSetup.pm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ sub copy_files
4646
sub 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

src/test/ssl/t/001_ssltests.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ sub test_connect_fails
8484

8585
diag "setting up data directory in \"$tempdir\"...";
8686
start_test_server($tempdir);
87-
configure_test_server_for_ssl($tempdir);
87+
configure_test_server_for_ssl($tempdir, $SERVERHOSTADDR);
8888
switch_server_cert($tempdir, 'server-cn-only');
8989

9090
### Part 1. Run client-side tests.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy