Skip to content

Commit

Permalink
fail2bangh-3447: fix careless mistake arisen in b12a3ac by attempt to…
Browse files Browse the repository at this point in the history
… implement new reload capacity (rewritten latter): causing error "'noduplicates' is not defined" by double jail configuration
  • Loading branch information
sebres committed Jan 17, 2023
1 parent a3a3fff commit f93a538
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fail2ban/server/jails.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ def add(self, name, backend, db=None):
"""
with self.__lock:
if name in self._jails:
if noduplicates:
raise DuplicateJailException(name)
raise DuplicateJailException(name)
else:
self._jails[name] = Jail(name, backend, db)

Expand Down

0 comments on commit f93a538

Please sign in to comment.