mirror of https://github.com/fail2ban/fail2ban
small code review
parent
d344274271
commit
e40a8c8ae8
|
@ -533,11 +533,7 @@ class Filter(JailThread):
|
||||||
# failure-id:
|
# failure-id:
|
||||||
fid = fail.get('fid')
|
fid = fail.get('fid')
|
||||||
# ip-address or host:
|
# ip-address or host:
|
||||||
host = fail.get('ip4')
|
host = fail.get('ip4') or fail.get('ip6')
|
||||||
if host is not None:
|
|
||||||
raw = True
|
|
||||||
else:
|
|
||||||
host = fail.get('ip6')
|
|
||||||
if host is not None:
|
if host is not None:
|
||||||
raw = True
|
raw = True
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue