summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2022-02-25 18:28:58 +0100
committerMinteck <contact@minteck.org>2022-02-25 18:28:58 +0100
commita080026c10f1fe59848524cf22cdc113c3a0892d (patch)
treef04f2397ea58c11fab973c6bc4de15f639d0bd14
parentdec562fd5a9574614834e13a9aede3b6ed948ab2 (diff)
downloadargon-cdn-trunk.tar.gz
argon-cdn-trunk.tar.bz2
argon-cdn-trunk.zip
UpdateHEADtrunk
-rw-r--r--index.js2
1 files changed, 1 insertions, 1 deletions
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