mirror of https://github.com/fail2ban/fail2ban
code review (replace deprecated setter, since python 3.10)
parent
535a982dcc
commit
38026e5963
|
@ -196,7 +196,7 @@ class Fail2banClient(Fail2banCmdLine, Thread):
|
||||||
th.daemon = True
|
th.daemon = True
|
||||||
th.start()
|
th.start()
|
||||||
# Mark current (main) thread as daemon:
|
# Mark current (main) thread as daemon:
|
||||||
self.setDaemon(True)
|
self.daemon = True
|
||||||
# Start server direct here in main thread (not fork):
|
# Start server direct here in main thread (not fork):
|
||||||
self._server = Fail2banServer.startServerDirect(self._conf, False)
|
self._server = Fail2banServer.startServerDirect(self._conf, False)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue