Browse Source

ENH: fail2ban-regex now uses iteraable for log file

Previosuly, the whole file was read in first
pull/303/merge
Steven Hiscocks 11 years ago
parent
commit
879c1a32f7
  1. 2
      fail2ban-regex

2
fail2ban-regex

@ -377,7 +377,7 @@ if __name__ == "__main__":
try:
hdlr = open(cmd_log)
print "Use log file : %s" % cmd_log
test_lines = hdlr.readlines()
test_lines = hdlr # Iterable
except IOError, e:
print e
sys.exit(-1)

Loading…
Cancel
Save