From baaebb7d6ede8972ce2e59fc2834b9a3933ae53e Mon Sep 17 00:00:00 2001 From: sky Date: Sun, 12 May 2024 17:22:10 -0400 Subject: [PATCH] fixes --- utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils.js b/utils.js index 6d0baa6..fd2f44c 100644 --- a/utils.js +++ b/utils.js @@ -138,12 +138,12 @@ async function proxy(interaction) { proxy_requestdata[interaction.message.id][0] = interaction.fields.getTextInputValue("proxy_link") proxy_requestdata[interaction.message.id][3] = "accepted"; fs.writeFileSync(filePath, JSON.stringify(proxy_requestdata)); - fetch(`https://${proxy_ip}/api/addLink`, { + fetch(`http://${proxy_ip}/api/addLink`, { method: 'POST', headers: { 'Content-Type': 'application/json', }, - body: JSON.stringify({"link": interaction.fields.getTextInputValue("proxy_link"), "pass": proxy_requestdata[interaction.message.id][1], "auth": proxy_auth}), + body: JSON.stringify({"link": interaction.fields.getTextInputValue("proxy_link"), "password": proxy_requestdata[interaction.message.id][1], "auth": proxy_auth}), }) setTimeout(() => { fetch(`https://${interaction.fields.getTextInputValue("proxy_link")}/`)