From 4047a383702b70356853727e290d47aaa0da1531 Mon Sep 17 00:00:00 2001 From: Midorica Date: Thu, 9 Nov 2023 00:10:19 -0500 Subject: [PATCH] adding encryption version check for Ongeki --- titles/ongeki/index.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/titles/ongeki/index.py b/titles/ongeki/index.py index 5f318b6..26686a2 100644 --- a/titles/ongeki/index.py +++ b/titles/ongeki/index.py @@ -208,6 +208,7 @@ class OngekiServlet(BaseServlet): if ( not encrtped and self.game_cfg.crypto.encrypted_only + and version >= 120 ): self.logger.error( f"Unencrypted v{version} {endpoint} request, but config is set to encrypted only: {req_raw}" @@ -251,7 +252,7 @@ class OngekiServlet(BaseServlet): zipped = zlib.compress(json.dumps(resp, ensure_ascii=False).encode("utf-8")) - if not encrtped: + if not encrtped and version < 120: return zipped padded = pad(zipped, 16)