From 549f1352cf45a28ac21ecdb8b53de591118ab299 Mon Sep 17 00:00:00 2001 From: Stephen L Johnson Date: Tue, 19 Sep 2000 15:58:40 +0000 Subject: [PATCH] set errmode() to 'return' so errors a return instead of check 'croak'ing --- src/lib/Spong/Network/plugins/check_telnet | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/Spong/Network/plugins/check_telnet b/src/lib/Spong/Network/plugins/check_telnet index c276402..5cd96bf 100644 --- a/src/lib/Spong/Network/plugins/check_telnet +++ b/src/lib/Spong/Network/plugins/check_telnet @@ -21,6 +21,7 @@ sub check_telnet { foreach $port (@ports) { my $con = new Net::Telnet; + $con->errmode('return'); my $ok = $con->open(Host=> $host, Port => $port); if (! $ok) { $color = "red"; -- 2.30.2