From: Stephen L Johnson Date: Mon, 7 Feb 2000 03:07:31 +0000 (+0000) Subject: added "quit" command to check for proper connection termination X-Git-Tag: spong-2_7-alpha5~104 X-Git-Url: http://git.etc.gen.nz/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4a92f33a09e8a8d4db6e3d11725db68d2c4bfc2d;p=spong.git added "quit" command to check for proper connection termination --- diff --git a/src/lib/Spong/Network/plugins/check_ftp b/src/lib/Spong/Network/plugins/check_ftp index f0c4c1e..71dee21 100755 --- a/src/lib/Spong/Network/plugins/check_ftp +++ b/src/lib/Spong/Network/plugins/check_ftp @@ -4,7 +4,7 @@ $PLUGINS{'ftp'} = \&check_ftp; # Check FTP service using the built-in check_simple subroutine sub check_ftp { my ($host) = @_; - return &check_simple( $host, 21, "", "^\s*220", "ftp" ); + return &check_simple( $host, 21, "quit\n", "^\s*220", "ftp" ); } 1; diff --git a/src/lib/Spong/Network/plugins/check_smtp b/src/lib/Spong/Network/plugins/check_smtp index d95ad1b..5bb9e42 100755 --- a/src/lib/Spong/Network/plugins/check_smtp +++ b/src/lib/Spong/Network/plugins/check_smtp @@ -4,7 +4,7 @@ $PLUGINS{'smtp'} = \&check_smtp; # Check the smtp service with the built-in check_simple routine sub check_smtp { my ($host) = @_; - return &check_simple( $host, 25, "", "^\s*220", "smtp" ); + return &check_simple( $host, 25, "quit\n", "^\s*220", "smtp" ); } 1;