We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
nc
1 parent 5ec1a53 commit bc83e3dCopy full SHA for bc83e3d
hack/test-port-forwarding.pl
@@ -174,7 +174,7 @@
174
# Try to reach each listener from the host
175
foreach my $test (@test) {
176
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}";
+ my $nc = $test->{host_socket} eq "" ? "nc -w 1 $test->{host_ip} $test->{host_port}" : "nc -w 1 -U '$test->{host_socket}'";
178
open(my $netcat, "| $nc") or die "Can't run '$nc': $!";
179
print $netcat "$test->{log_msg}\n";
180
# Don't check for errors on close; macOS nc seems to return non-zero exit code even on success
0 commit comments