mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
ENH(minor): fail2ban-regex comment line doesn't have to have a space after leading #
This commit is contained in:
parent
2c8747cc76
commit
5bd186b854
1 changed files with 1 additions and 1 deletions
|
|
@ -256,7 +256,7 @@ class Fail2banRegex(object):
|
|||
def process(self, test_lines):
|
||||
|
||||
for line in test_lines:
|
||||
if line.startswith('# ') or not line.strip():
|
||||
if line.startswith('#') or not line.strip():
|
||||
# skip comment and empty lines
|
||||
continue
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue