remove(proxy): remove warp-proxy
This commit is contained in:
@@ -11,10 +11,6 @@ let _inMemoryCookies: Cookie[] | null = null;
|
||||
// Login lock to prevent concurrent login attempts
|
||||
let _loginLock: Promise<Cookie[]> | null = null;
|
||||
|
||||
// Proxy configuration
|
||||
const USE_PROXY = process.env.USE_PROXY === 'true';
|
||||
const PROXY_SERVER = process.env.ALL_PROXY || process.env.HTTP_PROXY || `http://host.docker.internal:9091`;
|
||||
|
||||
/**
|
||||
* Ensure only one login process runs at a time
|
||||
*/
|
||||
@@ -48,15 +44,6 @@ export async function loginWithPlaywright(username: string, password: string): P
|
||||
args: ['--no-sandbox', '--disable-setuid-sandbox']
|
||||
};
|
||||
|
||||
// Configure proxy if enabled
|
||||
if (USE_PROXY) {
|
||||
logger.info(`Using proxy: ${PROXY_SERVER}`);
|
||||
browserLaunchOptions.proxy = {
|
||||
server: PROXY_SERVER,
|
||||
bypass: 'localhost,127.0.0.1,::1'
|
||||
};
|
||||
}
|
||||
|
||||
const browser = await chromium.launch(browserLaunchOptions);
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user