cvs commit: qpsmtpd/plugins count_unrecognized_commands

[email protected] (Robert Spier)
Newsgroups perl.cvs.qpsmtpd
Message-ID <[email protected]>
cvsuser     04/11/27 21:58:58

  Modified:    plugins  count_unrecognized_commands
  Log:
  DENYHARD is deprecated in favor of DENY_DISCONNECT
  
  Revision  Changes    Path
  1.6       +2 -1      qpsmtpd/plugins/count_unrecognized_commands
  
  Index: count_unrecognized_commands
  ===================================================================
  RCS file: /cvs/public/qpsmtpd/plugins/count_unrecognized_commands,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- count_unrecognized_commands	27 Nov 2004 07:02:23 -0000	1.5
  +++ count_unrecognized_commands	28 Nov 2004 05:58:58 -0000	1.6
  @@ -1,3 +1,4 @@
  +# -*- perl -*-
   =head1 NAME
   
   count_unrecognized_commands - Count unrecognized commands and disconnect when we have too many
  @@ -41,7 +42,7 @@
   
     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;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.