]> git.etc.gen.nz Git - spong.git/commitdiff
Changed getlines() to getline() for one line logins and increased timeout. Thanks...
authorStephen L Johnson <sjohnson@monsters.org>
Sat, 22 Feb 2003 20:55:45 +0000 (20:55 +0000)
committerStephen L Johnson <sjohnson@monsters.org>
Sat, 22 Feb 2003 20:55:45 +0000 (20:55 +0000)
src/lib/Spong/Network/plugins/check_telnet

index f5bc52f01bfd3cbd093ecf568ee24d7be9fbdab4..bc523ffda3be71ca1afdc92711683f8cb36c8616 100644 (file)
@@ -1,5 +1,5 @@
 # check_telnet - v 1.0 May 18, 2000 - scarpe01@tufts.edu
-# $Id: check_telnet,v 1.3 2000/11/29 17:14:30 sljohnson Exp $
+# $Id: check_telnet,v 1.4 2003/02/22 20:55:45 sljohnson Exp $
 
 # Register the routine with the plugins registry
 $PLUGINS{'telnet'} = \&check_telnet;
@@ -31,7 +31,7 @@ sub check_telnet {
                }
 
                $con->print("\n\n");
-               my @data = $con->getlines((Timeout => 6));
+               my @data = $con->getline((Timeout => 15));
                if (@data) {
                        $message .= "$host:$port -\n@data\n";   
                } else {