Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
skysthelimitt committed May 12, 2024
1 parent 872842f commit baaebb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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")}/`)
Expand Down

0 comments on commit baaebb7

Please sign in to comment.