avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ran...@apache.org
Subject cvs commit: jakarta-avalon-apps/ftpserver/src/java/org/apache/avalon/ftpserver/ip IpRestrictorInterface.java FileIpRestrictor.java
Date Sun, 07 Apr 2002 17:03:36 GMT
rana_b      02/04/07 10:03:36

  Modified:    ftpserver/src/java/org/apache/avalon/ftpserver/ip
                        IpRestrictorInterface.java FileIpRestrictor.java
  Log:
  allow/ban IP
  
  Revision  Changes    Path
  1.3       +5 -0      jakarta-avalon-apps/ftpserver/src/java/org/apache/avalon/ftpserver/ip/IpRestrictorInterface.java
  
  Index: IpRestrictorInterface.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-apps/ftpserver/src/java/org/apache/avalon/ftpserver/ip/IpRestrictorInterface.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- IpRestrictorInterface.java	29 Mar 2002 09:07:51 -0000	1.2
  +++ IpRestrictorInterface.java	7 Apr 2002 17:03:35 -0000	1.3
  @@ -25,6 +25,11 @@
       String ROLE = IpRestrictorInterface.class.getName();
       
       /**
  +     * Allow/ban the listed IPs flag.
  +     */
  +    boolean isAllowIp();
  +
  +    /**
        * Reload data from store.
        */
       void reload() throws IOException;
  
  
  
  1.2       +7 -1      jakarta-avalon-apps/ftpserver/src/java/org/apache/avalon/ftpserver/ip/FileIpRestrictor.java
  
  Index: FileIpRestrictor.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-apps/ftpserver/src/java/org/apache/avalon/ftpserver/ip/FileIpRestrictor.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- FileIpRestrictor.java	31 Mar 2002 16:47:34 -0000	1.1
  +++ FileIpRestrictor.java	7 Apr 2002 17:03:35 -0000	1.2
  @@ -125,7 +125,13 @@
                  break;
              }
          }
  -       return !bMatch; 
  +
  +       if (isAllowIp()) {
  +           return bMatch;
  +       }
  +       else {
  +           return !bMatch;
  +       }
       }
   
       /**
  
  
  

--
To unsubscribe, e-mail:   <mailto:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>


Mime
View raw message