From 4ea16e303ed37a69ac13812b83bf9bcd5fbd3125 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?AM=E7=A7=91=E6=8A=80?= Date: Wed, 6 Nov 2024 17:42:58 +0800 Subject: [PATCH] Update _worker.js --- _worker.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/_worker.js b/_worker.js index 8ec0982..cdcd8cd 100644 --- a/_worker.js +++ b/_worker.js @@ -113,12 +113,13 @@ export default { userID = (UUID || userID).toLowerCase(); if (PROXYIP) { if (httpPattern.test(PROXYIP)) { + let proxyIpTxt = await addIpText(PROXYIP); let ipUrlTxtAndCsv; if (PROXYIP.endsWith('.csv')) { - ipUrlTxtAndCsv = await getIpUrlTxtAndCsv(noTLS, null, PROXYIP); + ipUrlTxtAndCsv = await getIpUrlTxtAndCsv(noTLS, null, proxyIpTxt); } else { - ipUrlTxtAndCsv = await getIpUrlTxtAndCsv(noTLS, PROXYIP, null); + ipUrlTxtAndCsv = await getIpUrlTxtAndCsv(noTLS, proxyIpTxt, null); } const uniqueIpTxt = [...new Set([...ipUrlTxtAndCsv.txt, ...ipUrlTxtAndCsv.csv])]; proxyIP = uniqueIpTxt[Math.floor(Math.random() * uniqueIpTxt.length)];