From a1066779a1f65e6cecc62a964fdb5d00483555f3 Mon Sep 17 00:00:00 2001 From: Shiroi Kitsu <108461408+shiroikitsu8@users.noreply.github.com> Date: Thu, 29 Jun 2023 10:24:06 +0700 Subject: [PATCH] revision check --- src/modules/util/common.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/util/common.ts b/src/modules/util/common.ts index 49d3bc2..9f66344 100644 --- a/src/modules/util/common.ts +++ b/src/modules/util/common.ts @@ -62,6 +62,7 @@ export function sendResponse(message: Writer, res: Response, headers: string[]) // Get config const config = Config.getConfig(); + let revisionCheck = config.gameOptions.revisionCheck || 1; // Get the end of the message let end = message.finish(); @@ -74,7 +75,7 @@ export function sendResponse(message: Writer, res: Response, headers: string[]) .status(200); // If revision check is enabled - if (config.gameOptions.revisionCheck) { + if (revisionCheck == 1) { // Get the protobuf revision from the headers let revision = getProtobufRevision(headers);