remove browser proxy
This commit is contained in:
+1
-9
@@ -7,7 +7,7 @@ import { fileURLToPath } from "url";
|
|||||||
import { createDirectoryIfNotExists, sleep, extractCookie, getSessionCookie, createDocx } from "./utils.mjs";
|
import { createDirectoryIfNotExists, sleep, extractCookie, getSessionCookie, createDocx } from "./utils.mjs";
|
||||||
import { execSync } from 'child_process';
|
import { execSync } from 'child_process';
|
||||||
import os from 'os';
|
import os from 'os';
|
||||||
import { createProxyAgent, getProxyArgs, getProxyEnv } from './proxyAgent.mjs';
|
import './proxyAgent.mjs';
|
||||||
|
|
||||||
const __filename = fileURLToPath(import.meta.url);
|
const __filename = fileURLToPath(import.meta.url);
|
||||||
const __dirname = path.dirname(__filename);
|
const __dirname = path.dirname(__filename);
|
||||||
@@ -58,14 +58,6 @@ class YouProvider {
|
|||||||
customConfig: {
|
customConfig: {
|
||||||
userDataDir: path.join(__dirname, "browser_profiles", username),
|
userDataDir: path.join(__dirname, "browser_profiles", username),
|
||||||
executablePath: browserPath,
|
executablePath: browserPath,
|
||||||
args: [...getProxyArgs()],
|
|
||||||
},
|
|
||||||
customLaunchOptions: {
|
|
||||||
ignoreDefaultArgs: ['--disable-extensions'],
|
|
||||||
env: {
|
|
||||||
...process.env,
|
|
||||||
...getProxyEnv(),
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
.then(async (response) => {
|
.then(async (response) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user