"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "fail2ban/server/transmitter.py" between
fail2ban-0.10.5.tar.gz and fail2ban-0.11.1.tar.gz

About:

transmitter.py  (fail2ban-0.10.5):transmitter.py  (fail2ban-0.11.1)
skipping to change at line 346 skipping to change at line 346
# command # command
elif command[1] == "bantime": elif command[1] == "bantime":
value = command[2] value = command[2]
self.__server.setBanTime(name, value) self.__server.setBanTime(name, value)
if self.__quiet: return if self.__quiet: return
return self.__server.getBanTime(name) return self.__server.getBanTime(name)
elif command[1] == "attempt": elif command[1] == "attempt":
value = command[2:] value = command[2:]
if self.__quiet: return if self.__quiet: return
return self.__server.addAttemptIP(name, *value) return self.__server.addAttemptIP(name, *value)
elif command[1].startswith("bantime."):
value = command[2]
opt = command[1][len("bantime."):]
self.__server.setBanTimeExtra(name, opt, value)
if self.__quiet: return
return self.__server.getBanTimeExtra(name, opt)
elif command[1] == "banip": elif command[1] == "banip":
value = command[2:] value = command[2:]
return self.__server.setBanIP(name,value) return self.__server.setBanIP(name,value)
elif command[1] == "unbanip": elif command[1] == "unbanip":
ifexists = True ifexists = True
if command[2] != "--report-absent": if command[2] != "--report-absent":
value = command[2:] value = command[2:]
else: else:
ifexists = False ifexists = False
value = command[3:] value = command[3:]
skipping to change at line 464 skipping to change at line 470
return self.__server.getLogTimeZone(name) return self.__server.getLogTimeZone(name)
elif command[1] == "maxmatches": elif command[1] == "maxmatches":
return self.__server.getMaxMatches(name) return self.__server.getMaxMatches(name)
elif command[1] == "maxretry": elif command[1] == "maxretry":
return self.__server.getMaxRetry(name) return self.__server.getMaxRetry(name)
elif command[1] == "maxlines": elif command[1] == "maxlines":
return self.__server.getMaxLines(name) return self.__server.getMaxLines(name)
# Action # Action
elif command[1] == "bantime": elif command[1] == "bantime":
return self.__server.getBanTime(name) return self.__server.getBanTime(name)
elif command[1] == "banip":
return self.__server.getBanList(name,
withTime=len(command) > 2 and command[2] == "--wi
th-time")
elif command[1].startswith("bantime."):
opt = command[1][len("bantime."):]
return self.__server.getBanTimeExtra(name, opt)
elif command[1] == "actions": elif command[1] == "actions":
return self.__server.getActions(name).keys() return self.__server.getActions(name).keys()
elif command[1] == "action": elif command[1] == "action":
actionname = command[2] actionname = command[2]
actionvalue = command[3] actionvalue = command[3]
action = self.__server.getAction(name, actionname) action = self.__server.getAction(name, actionname)
return getattr(action, actionvalue) return getattr(action, actionvalue)
elif command[1] == "actionproperties": elif command[1] == "actionproperties":
actionname = command[2] actionname = command[2]
action = self.__server.getAction(name, actionname) action = self.__server.getAction(name, actionname)
 End of changes. 2 change blocks. 
0 lines changed or deleted 13 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)