Skip to content

Commit e77e473

Browse files
committed
Use TCP/IP if we guess the testhost based on the port
1 parent c87b4bd commit e77e473

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile.PL

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,9 @@ for my $key (qw/testdb testhost testuser testpassword testsocket testport
101101
}
102102

103103
#if we have a testport but no host, assume localhost
104+
#but use 127.0.0.1 instead of 'localhost' to use TCP/IP
104105
if ( $opt->{testport} && !$opt->{testhost} ) {
105-
$opt->{testhost} = 'localhost';
106+
$opt->{testhost} = '127.0.0.1';
106107
$source->{testhost} = 'guessed';
107108
}
108109

0 commit comments

Comments
 (0)