Encryption started in v1.10 (DX PLUS)

This commit is contained in:
beerpsi 2024-04-19 17:27:39 +07:00
parent 18110778e2
commit 8f96844025
1 changed files with 2 additions and 2 deletions

View File

@ -350,7 +350,7 @@ class Mai2Servlet(BaseServlet):
if (
not encrypted
and self.game_cfg.crypto.encrypted_only
and version >= 120 # TODO: Since when was encryption implemented?
and version >= 110
):
self.logger.error(
"Unencrypted v%s %s request, but config is set to encrypted only: %r",
@ -400,7 +400,7 @@ class Mai2Servlet(BaseServlet):
zipped = zlib.compress(json.dumps(resp, ensure_ascii=False).encode("utf-8"))
if not encrypted or version < 120: # TODO: Since when was encryption implemented?
if not encrypted or version < 110:
return Response(zipped)
padded = pad(zipped, 16)