From: Stephen L Johnson Date: Tue, 19 Sep 2000 15:58:40 +0000 (+0000) Subject: set errmode() to 'return' so errors a return instead of check 'croak'ing X-Git-Tag: spong-2_7_0-beta1~38 X-Git-Url: http://git.etc.gen.nz/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=549f1352cf45a28ac21ecdb8b53de591118ab299;p=spong.git set errmode() to 'return' so errors a return instead of check 'croak'ing --- 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";