mirror of
https://github.com/gnh1201/caterpillar.git
synced 2024-11-26 15:31:45 +00:00
Update server.py
This commit is contained in:
parent
ed91362515
commit
d8dd92f9c0
|
@ -144,6 +144,12 @@ def conn_string(conn: socket.socket, data: bytes, addr: bytes):
|
|||
# will be close by the client
|
||||
return
|
||||
|
||||
# Check a preludes in connectors
|
||||
connector = test_connectors(data)
|
||||
if connector:
|
||||
logger.info("[*] Connecting...")
|
||||
connector.connect(conn, data)
|
||||
|
||||
# parse first data (header)
|
||||
webserver, port, scheme, method, url = parse_first_data(data)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user