mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
IMHO there is no good reason to capture only gaierror.
on my network it was consistent to error out with
======================================================================
ERROR: testIgnoreIPNOK (testcases.filtertestcase.IgnoreIP)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/yoh/deb/gits/fail2ban/testcases/filtertestcase.py", line 166, in testIgnoreIPNOK
self.assertFalse(self.filter.inIgnoreIPList(ip))
File "/home/yoh/deb/gits/fail2ban/server/filter.py", line 277, in inIgnoreIPList
ips = DNSUtils.dnsToIp(i)
File "/home/yoh/deb/gits/fail2ban/server/filter.py", line 625, in dnsToIp
return socket.gethostbyname_ex(dns)[2]
error: [Errno 11] Resource temporarily unavailable
with this commit tests would pass normally as they should
|
||
|---|---|---|
| .. | ||
| __init__.py | ||
| action.py | ||
| actions.py | ||
| asyncserver.py | ||
| banmanager.py | ||
| datedetector.py | ||
| datetemplate.py | ||
| faildata.py | ||
| failmanager.py | ||
| failregex.py | ||
| filter.py | ||
| filtergamin.py | ||
| filterpoll.py | ||
| filterpyinotify.py | ||
| iso8601.py | ||
| jail.py | ||
| jails.py | ||
| jailthread.py | ||
| mytime.py | ||
| server.py | ||
| ticket.py | ||
| transmitter.py | ||