Update server.py

This commit is contained in:
Namhyeon Go 2024-11-12 17:26:37 +09:00 committed by GitHub
parent ed91362515
commit d8dd92f9c0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)