mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
Merge branch '_tent/bf-unicode-syslog'
* _tent/bf-unicode-syslog: Enforce "ip" field returned as str, not unicode so that log message stays non-unicode
This commit is contained in:
commit
56261fe67a
1 changed files with 2 additions and 2 deletions
|
|
@ -163,13 +163,13 @@ class Actions(JailThread):
|
|||
aInfo["time"] = bTicket.getTime()
|
||||
aInfo["matches"] = "".join(bTicket.getMatches())
|
||||
if self.__banManager.addBanTicket(bTicket):
|
||||
logSys.warn("[%s] Ban %s" % (self.jail.getName(), aInfo["ip"]))
|
||||
logSys.warn("[%s] Ban %s" % (self.jail.getName(), str(aInfo["ip"])))
|
||||
for action in self.__actions:
|
||||
action.execActionBan(aInfo)
|
||||
return True
|
||||
else:
|
||||
logSys.warn("[%s] %s already banned" % (self.jail.getName(),
|
||||
aInfo["ip"]))
|
||||
str(aInfo["ip"])))
|
||||
return False
|
||||
|
||||
##
|
||||
|
|
|
|||
Loading…
Reference in a new issue