mirror of https://github.com/fail2ban/fail2ban
Set Timeout at urlopen to 3 seconds
parent
cf3a1c15a0
commit
6d72602f6b
1
THANKS
1
THANKS
|
@ -71,6 +71,7 @@ kojiro
|
|||
Lars Kneschke
|
||||
Lee Clemens
|
||||
leftyfb (Mike Rushton)
|
||||
M. Maraun
|
||||
Manuel Arostegui Ramirez
|
||||
Marcel Dopita
|
||||
Mark Edgington
|
||||
|
|
|
@ -116,7 +116,7 @@ class BadIPsAction(ActionBase):
|
|||
"""
|
||||
try:
|
||||
response = urlopen(
|
||||
self._Request("/".join([self._badips, "get", "categories"])))
|
||||
self._Request("/".join([self._badips, "get", "categories"])), None, 3)
|
||||
except HTTPError as response:
|
||||
messages = json.loads(response.read().decode('utf-8'))
|
||||
self._logSys.error(
|
||||
|
|
Loading…
Reference in New Issue