diff --git a/START-DEV.bat b/START-DEV.bat index a66899f..33429a6 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 4f5e3da..c7a9f6c 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 5705b09..f671c7c 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 b0231ad..4780d0f 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()