1
0
mirror of synced 2025-02-02 20:57:23 +01:00

revision check

This commit is contained in:
Shiroi Kitsu 2023-06-29 10:24:06 +07:00
parent f9f34000e3
commit a1066779a1

View File

@ -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);