Encryption started in v1.10 (DX PLUS)
This commit is contained in:
parent
18110778e2
commit
8f96844025
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue