소스 검색

change proxy

Shawn Lu 1 년 전
부모
커밋
35ff66f79b
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/faucet/faucet.ts

+ 2 - 2
src/faucet/faucet.ts

@@ -1,5 +1,5 @@
 import {
-  forEachAsync,
+  forEachAsync, generate2CaptchaProxyAgent,
   generateRandomString,
   getAxiosClient,
   getProxyAgent,
@@ -95,7 +95,7 @@ async function faucetLunch(concurrency: number = 8) {
               'lunch-fiat-currency': 'USD',
               'lunch-app-duid': account.duid,
             },
-            httpsAgent: getProxyAgent(),
+            httpsAgent: generate2CaptchaProxyAgent(),
           })
           const resp = await client.post(
             'https://api.lunchlunch.xyz/v1/auth/sign-in',