From 90a918d4322ce8890036ea6c48950b16db9be357 Mon Sep 17 00:00:00 2001 From: Simon Date: Sun, 4 Jun 2023 17:35:22 +0100 Subject: [PATCH] bltime --- hotspot_proxy_v2.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hotspot_proxy_v2.py b/hotspot_proxy_v2.py index 70790cf..a12df77 100644 --- a/hotspot_proxy_v2.py +++ b/hotspot_proxy_v2.py @@ -213,7 +213,8 @@ class Proxy(DatagramProtocol): self.rptlTrack[host] += 1 if self.rptlTrack[host] > 20: - self.IPBlackList[host] = (nowtime + 600) + _bltime = nowtime + 6000 + self.IPBlackList[host] = _bltime if self.clientinfo: print('(RPTL) Add to blacklist: host {}. Expire time {}'.format(self.peerTrack[_peer_id]['shost'],_bltime))