mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
Quite little adjustments on tests and return value
# Conflicts: # fail2ban/server/ipdns.py
This commit is contained in:
parent
8cb4a3f59e
commit
4274ae89c6
1 changed files with 2 additions and 2 deletions
|
|
@ -303,12 +303,12 @@ class IPAddr(object):
|
|||
def isIPv4(self):
|
||||
""" return true if the IP object is of address family AF_INET
|
||||
"""
|
||||
return True if self.family == socket.AF_INET else False
|
||||
return self.family == socket.AF_INET
|
||||
|
||||
def isIPv6(self):
|
||||
""" return true if the IP object is of address family AF_INET6
|
||||
"""
|
||||
return True if self.family == socket.AF_INET6 else False
|
||||
return self.family == socket.AF_INET6
|
||||
|
||||
def getRaw(self):
|
||||
""" returns the raw attribute - should only be set
|
||||
|
|
|
|||
Loading…
Reference in a new issue