diff options
-rw-r--r-- | index.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |