mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
fix(run-server): do not engage socks when not requested (#21848)
Fixes #21762.
This commit is contained in:
parent
1cf53da82a
commit
21e1c50bcd
@ -226,6 +226,8 @@ export class PlaywrightConnection {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private async _createOwnedSocksProxy(playwright: Playwright): Promise<SocksProxy | undefined> {
|
private async _createOwnedSocksProxy(playwright: Playwright): Promise<SocksProxy | undefined> {
|
||||||
|
if (!this._options.socksProxyPattern)
|
||||||
|
return;
|
||||||
const socksProxy = new SocksProxy();
|
const socksProxy = new SocksProxy();
|
||||||
socksProxy.setPattern(this._options.socksProxyPattern);
|
socksProxy.setPattern(this._options.socksProxyPattern);
|
||||||
playwright.options.socksProxyPort = await socksProxy.listen(0);
|
playwright.options.socksProxyPort = await socksProxy.listen(0);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user