Add support for new request type

This commit is contained in:
Janis
2023-11-25 20:35:54 +01:00
parent af5dd7243e
commit 2c159b6fa3

View File

@@ -51,7 +51,7 @@ class RequestHandler(threading.Thread):
isStarting = self.docker_handler.is_container_starting(container)
request = self.connection.recv(1024)
print(f'Received request: {request}')
if request[0] == 0x10 or request[0] == 0x15:
if request[0] == 0x10 or request[0] == 0x15 or request[0] == 0x1b:
if b'\x01' in request:
print(f'Detected ping request for {container_ip}')
self.forward_request_to_placeholder(request, isStarting)