fix silly perl error in commit d064afc720
authorAndrew Dunstan <andrew@dunslane.net>
Wed, 21 Apr 2021 15:12:04 +0000 (11:12 -0400)
committerAndrew Dunstan <andrew@dunslane.net>
Wed, 21 Apr 2021 15:17:29 +0000 (11:17 -0400)
src/test/perl/PostgresNode.pm

index 8394c57d3f872d1332a399062f2f5acfacb526aa..685dee6fab54dda74c5e33249ce8876105f66deb 100644 (file)
@@ -1344,8 +1344,7 @@ sub get_free_port
                if ($found == 1)
                {
                        foreach my $addr (qw(127.0.0.1),
-               $use_tcp ? qw(127.0.0.2 127.0.0.3 0.0.0.0) : ())
-               $use_tcp && $TestLib::windows_os
+               ($use_tcp && $TestLib::windows_os)
                ? qw(127.0.0.2 127.0.0.3 0.0.0.0)
                : ())
                        {