summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/t/check_udp.t5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/t/check_udp.t b/plugins/t/check_udp.t
index ae1718c..6ede300 100644
--- a/plugins/t/check_udp.t
+++ b/plugins/t/check_udp.t
@@ -31,7 +31,10 @@ cmp_ok( $res->return_code, '==', 2, "Errors correctly because no udp service run
31like ( $res->output, '/No data received from host/', "Output OK"); 31like ( $res->output, '/No data received from host/', "Output OK");
32 32
33my $nc; 33my $nc;
34if(system("which netcat >/dev/null 2>&1") == 0) { 34if(system("which nc.traditional >/dev/null 2>&1") == 0) {
35 $nc = 'nc.traditional -w 3 -l -u -p 3333';
36}
37elsif(system("which netcat >/dev/null 2>&1") == 0) {
35 $nc = 'netcat -w 3 -l -u -p 3333'; 38 $nc = 'netcat -w 3 -l -u -p 3333';
36} 39}
37elsif(system("which nc >/dev/null 2>&1") == 0) { 40elsif(system("which nc >/dev/null 2>&1") == 0) {