Logo Search packages:      
Sourcecode: fail2ban version File versions  Download package

def logreader::logreader::LogReader::inIgnoreIPList (   self,
  ip 
)

Checks if IP is in the ignore list.

Definition at line 70 of file logreader.py.

00070                                   :
            """ Checks if IP is in the ignore list.
            """
            for i in self.ignoreIpList:
                  s = i.split('/', 1)
                  # IP address without CIDR mask
                  if len(s) == 1:
                        s.insert(1, '32')
                  s[1] = long(s[1])
                  a = cidr(s[0], s[1])
                  b = cidr(ip, s[1])
                  if a == b:
                        return True
            return False
      
      def openLogFile(self):


Generated by  Doxygen 1.6.0   Back to index