diff --git a/fail2ban/server/ipdns.py b/fail2ban/server/ipdns.py index e75cd9ed..b36b5cb1 100644 --- a/fail2ban/server/ipdns.py +++ b/fail2ban/server/ipdns.py @@ -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