From 9a9e4ebedfb55b8c2deeb90269c18a69181ad6e5 Mon Sep 17 00:00:00 2001 From: Aetherinox Date: Fri, 2 May 2025 16:58:42 -0700 Subject: [PATCH] fix: invalid api key should stop request once detected --- tvapp2/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/tvapp2/index.js b/tvapp2/index.js index 74b9be0a..34884f72 100755 --- a/tvapp2/index.js +++ b/tvapp2/index.js @@ -1316,6 +1316,7 @@ const server = http.createServer( ( request, response ) => Log.error( `www`, chalk.yellow( `[req]` ), chalk.white( `→` ), chalk.blueBright( `` ), chalk.redBright( `unauthorized (401): incorrect api key specified` ), chalk.blueBright( `` ), chalk.gray( `api/restart` ), chalk.blueBright( `` ), chalk.gray( `${ loadFile }` ), chalk.blueBright( `` ), chalk.gray( `${ method }` ) ); response.end( JSON.stringify( statusCheck ) ); + return; } await initialize();