DENYHARD is deprecated in favor of DENY_DISCONNECT

git-svn-id: https://svn.perl.org/qpsmtpd/trunk@353 958fd67b-6ff1-0310-b445-bb7760255be9
This commit is contained in:
Robert Spier 2004-11-28 05:58:58 +00:00
parent 9422b16c0f
commit ddc945f8f6

View File

@ -1,3 +1,4 @@
# -*- perl -*-
=head1 NAME
count_unrecognized_commands - Count unrecognized commands and disconnect when we have too many
@ -41,7 +42,7 @@ sub check_unrec_cmd {
if ($badcmdcount >= $self->{_unrec_cmd_max}) {
$self->log(LOGINFO, "Closing connection. Too many unrecognized commands.");
return (DENYHARD, "Closing connection. $badcmdcount unrecognized commands. Perhaps you should read RFC 2821?");
return (DENY_DISCONNECT, "Closing connection. $badcmdcount unrecognized commands. Perhaps you should read RFC 2821?");
}
return DECLINED;