1
0
mirror of synced 2024-11-28 07:50:48 +01:00

sao: fix generic handler

This commit is contained in:
Kevin Trocolli 2023-11-09 21:09:55 -05:00
parent 8d190ce7f0
commit 4cd1181ef7

View File

@ -116,14 +116,15 @@ class SaoServlet(BaseServlet):
handler = getattr(self.base, f"handle_{cmd_str}", None) handler = getattr(self.base, f"handle_{cmd_str}", None)
if handler is None: if handler is None:
self.logger.info(f"Generic Handler for {endpoint} - {cmd_str}") self.logger.info(f"Generic Handler for {endpoint} - {cmd_str}")
self.logger.debug(f"Request: {request.content.getvalue().hex()}") self.logger.debug(f"Request: {req_raw.hex()}")
resp = SaoNoopResponse(req_header.cmd + 1) resp_thing = SaoNoopResponse(req_header.cmd + 1)
self.logger.debug(f"Response: {resp.make().hex()}") resp = resp_thing.make()
return resp.make()
else:
self.logger.info(f"Handler {endpoint} - {cmd_str} request") self.logger.info(f"Handler {endpoint} - {cmd_str} request")
self.logger.debug(f"Request: {request.content.getvalue().hex()}") self.logger.debug(f"Request: {req_raw.hex()}")
resp = handler(sao_request) resp = handler(sao_request)
self.logger.debug(f"Response: {resp.hex()}") self.logger.debug(f"Response: {resp.hex()}")
if self.game_cfg.crypt.enable: if self.game_cfg.crypt.enable: