From a080026c10f1fe59848524cf22cdc113c3a0892d Mon Sep 17 00:00:00 2001 From: Minteck Date: Fri, 25 Feb 2022 18:28:58 +0100 Subject: Update --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'index.js') diff --git a/index.js b/index.js index 73e305f..0180b55 100644 --- a/index.js +++ b/index.js @@ -59,7 +59,7 @@ const requestListener = function(req, res) { console.log(temp[uid].parts, req.headers["user-agent"], userIp); if (temp[uid].parts.length >= 2) { - if (temp[uid].parts.length === 3 && temp[uid].parts[0] === "authorize") { + if (temp[uid].parts.length >= 3 && temp[uid].parts.length < 6 && temp[uid].parts[0] === "authorize") { let song = temp[uid].parts[1].replace(/[^0-9a-f]/gm, ""); let quality = temp[uid].parts[2].replace(/[^a-z]/gm, ""); let ua -- cgit