mirror of
https://github.com/MatrixTM/MHDDoS.git
synced 2024-11-16 11:42:42 +08:00
add multiproxy support
This commit is contained in:
parent
d089ae5b89
commit
280906c1ed
3
start.py
3
start.py
|
@ -286,7 +286,8 @@ class HttpFlood(Thread):
|
|||
def open_connection(self) -> socket:
|
||||
sock = socket(AF_INET, SOCK_STREAM)
|
||||
if self._proxies:
|
||||
sock = next(self._proxies).wrap(sock)
|
||||
sock.close()
|
||||
sock = next(self._proxies).open_socket(AF_INET, SOCK_STREAM)
|
||||
|
||||
sock.setsockopt(IPPROTO_TCP, TCP_NODELAY, 1)
|
||||
if self._target.scheme.lower() == "https":
|
||||
|
|
Loading…
Reference in New Issue
Block a user