We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 14447a8 commit 94221faCopy full SHA for 94221fa
hack/test-port-forwarding.pl
@@ -54,6 +54,17 @@
54
exit;
55
}
56
57
+# Check if netcat is available before running tests
58
+my $nc_path = `command -v nc 2>/dev/null`;
59
+chomp $nc_path;
60
+unless ($nc_path) {
61
+ die "Error: 'nc' (netcat) is not installed on the host system.\n" .
62
+ "Please install netcat to run this test script:\n" .
63
+ " - On macOS: brew install netcat\n" .
64
+ " - On Ubuntu/Debian: sudo apt-get install netcat\n" .
65
+ " - On RHEL/CentOS: sudo yum install nmap-ncat\n";
66
+}
67
+
68
# Otherwise $instance must be the name of an already running instance that has been
69
# configured with our portForwards settings.
70
0 commit comments