Skip to content

Commit bc83e3d

Browse files
committed
hack/test-port-forwarding.pl: use single quotes to hostSocket on host side nc
Signed-off-by: Norio Nomura <[email protected]>
1 parent 5ec1a53 commit bc83e3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hack/test-port-forwarding.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@
174174
# Try to reach each listener from the host
175175
foreach my $test (@test) {
176176
next if $test->{host_port} == $sshLocalPort;
177-
my $nc = $test->{host_socket} eq "" ? "nc -w 1 $test->{host_ip} $test->{host_port}" : "nc -w 1 -U $test->{host_socket}";
177+
my $nc = $test->{host_socket} eq "" ? "nc -w 1 $test->{host_ip} $test->{host_port}" : "nc -w 1 -U '$test->{host_socket}'";
178178
open(my $netcat, "| $nc") or die "Can't run '$nc': $!";
179179
print $netcat "$test->{log_msg}\n";
180180
# Don't check for errors on close; macOS nc seems to return non-zero exit code even on success

0 commit comments

Comments
 (0)