From 9c2a1506d24aef3e8980ac30860639401c05dede Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Tue, 23 Aug 2022 01:05:37 +0400 Subject: [PATCH] Updated links to captcha service. --- homepage/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/homepage/index.js b/homepage/index.js index 4f05dfa..6d728e1 100644 --- a/homepage/index.js +++ b/homepage/index.js @@ -47,9 +47,10 @@ async function getProcesses() { } } +// 127.0.0.1:19322 async function getNewCaptcha() { try { - return await fetch("http://127.0.0.1:19322/").then(r => r.text()); + return await fetch("http://startpage.arav.home.arpa/captcha/").then(r => r.text()); } catch { return null; } @@ -59,7 +60,7 @@ async function solveCaptcha(id, answer) { try { let body = new URLSearchParams(); body.append('answer', answer); - let result = fetch(`http://127.0.0.1:19322/${id}`, { method: "POST", body: body } ); + let result = fetch(`http://startpage.arav.home.arpa/captcha/${id}`, { method: "POST", body: body } ); return await result.then(r => { return r.status == 200; });