drop one of the slowloris detectors

This commit is contained in:
ed
2022-12-02 17:53:23 +00:00
parent 89c9f45fd0
commit 7c76d08958
6 changed files with 9 additions and 28 deletions

View File

@@ -266,8 +266,8 @@ class HttpSrv(object):
continue
t = "slowloris (idle-conn): {} banned for {} min"
self.log(self.name, t.format(ip, self.args.loris2, nclose), 1)
self.bans[ip] = int(time.time() + self.args.loris2 * 60)
self.log(self.name, t.format(ip, self.args.loris, nclose), 1)
self.bans[ip] = int(time.time() + self.args.loris * 60)
if self.args.log_conn:
self.log(self.name, "|%sC-acc1" % ("-" * 2,), c="90")