From d760532e95dfef552fe78d2eb8f51fbf0d783a57 Mon Sep 17 00:00:00 2001 From: NunoSempere Date: Fri, 4 Feb 2022 16:49:20 -0500 Subject: [PATCH] tweak: just use the backup proxy --- src/platforms/goodjudgment-fetch.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/platforms/goodjudgment-fetch.js b/src/platforms/goodjudgment-fetch.js index d42fe72..a6d7743 100644 --- a/src/platforms/goodjudgment-fetch.js +++ b/src/platforms/goodjudgment-fetch.js @@ -20,7 +20,8 @@ String.prototype.replaceAll = function replaceAll(search, replace) { export async function goodjudgment() { // Proxy fuckery let proxy; - try { + /* + * try { proxy = await axios .get("http://pubproxy.com/api/proxy") .then((query) => query.data); @@ -28,11 +29,12 @@ export async function goodjudgment() { } catch (error) { console.log("Proxy generation failed; using backup proxy instead"); // hard-coded backup proxy - proxy = { - ip: process.env.BACKUP_PROXY_IP, - port: process.env.BACKUP_PROXY_PORT, - }; - } + */ + proxy = { + ip: process.env.BACKUP_PROXY_IP, + port: process.env.BACKUP_PROXY_PORT, + }; + // } let agent = tunnel.httpsOverHttp({ proxy: { host: proxy.ip,