From 660a6e633674713fae9a3c35bfbbd86508ab4112 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A2=AB=E9=81=97=E5=BF=98=E7=9A=84=E8=AE=B0=E5=BF=86?= <32097237+YIWANG-sketch@users.noreply.github.com> Date: Tue, 30 Jul 2024 14:56:53 +0800 Subject: [PATCH] remove browser proxy --- provider.mjs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/provider.mjs b/provider.mjs index 837ba8d..893b4c0 100644 --- a/provider.mjs +++ b/provider.mjs @@ -7,7 +7,7 @@ import { fileURLToPath } from "url"; import { createDirectoryIfNotExists, sleep, extractCookie, getSessionCookie, createDocx } from "./utils.mjs"; import { execSync } from 'child_process'; import os from 'os'; -import { createProxyAgent, getProxyArgs, getProxyEnv } from './proxyAgent.mjs'; +import './proxyAgent.mjs'; const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename); @@ -58,14 +58,6 @@ class YouProvider { customConfig: { userDataDir: path.join(__dirname, "browser_profiles", username), executablePath: browserPath, - args: [...getProxyArgs()], - }, - customLaunchOptions: { - ignoreDefaultArgs: ['--disable-extensions'], - env: { - ...process.env, - ...getProxyEnv(), - }, }, }) .then(async (response) => {