From f3e0b2fd60d1e235c5d103ab470beb9558b16142 Mon Sep 17 00:00:00 2001 From: NotArandomGUY <01game01play@gmail.com> Date: Fri, 15 Mar 2024 02:13:23 +0800 Subject: [PATCH] NodeJS 20 support --- START-DEV.bat | 4 ++-- START-REL.bat | 2 +- src/server.ts | 2 +- src/update.ts | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/START-DEV.bat b/START-DEV.bat index a66899fd..33429a6d 100644 --- a/START-DEV.bat +++ b/START-DEV.bat @@ -6,9 +6,9 @@ set /p insp=Inspect? (Y/N): if "%insp%" equ "Y" goto launch-inspect :launch -node .\buildDev\entry\mainEntry -ll=5 +node --security-revert=CVE-2023-46809 .\buildDev\entry\mainEntry -ll=5 exit :launch-inspect -node --inspect .\buildDev\entry\mainEntry -ll=5 +node --inspect --security-revert=CVE-2023-46809 .\buildDev\entry\mainEntry -ll=5 exit \ No newline at end of file diff --git a/START-REL.bat b/START-REL.bat index 4f5e3da7..c7a9f6cd 100644 --- a/START-REL.bat +++ b/START-REL.bat @@ -1,3 +1,3 @@ @echo off cls -node .\buildRel\mainEntry \ No newline at end of file +node --security-revert=CVE-2023-46809 .\buildRel\mainEntry \ No newline at end of file diff --git a/src/server.ts b/src/server.ts index 5705b093..f671c7c3 100644 --- a/src/server.ts +++ b/src/server.ts @@ -285,7 +285,7 @@ export default class Server { await this.runShutdownTasks() await waitMs(delay) - await detachedSpawn(execPath, process.argv.slice(1)) + await detachedSpawn(execPath, ['--security-revert=CVE-2023-46809', ...process.argv.slice(1)]) exit() } diff --git a/src/update.ts b/src/update.ts index b0231ad7..4780d0f2 100644 --- a/src/update.ts +++ b/src/update.ts @@ -44,7 +44,7 @@ export default class Update { await this.server.runShutdownTasks(true) logger.info('message.update.info.restart') - await detachedSpawn(path, [process.argv[1], ...args]) + await detachedSpawn(path, ['--security-revert=CVE-2023-46809', process.argv[1], ...args]) logger.info('message.update.info.exit') proc.exit()