disable socat by default (#622)

- crawling: add '--debugAccessBrowser' flag to enable connecting via
9222, only run socat then
- profiles: only run socat in headless mode
This commit is contained in:
Ilya Kreymer 2024-06-20 20:10:25 -07:00 committed by GitHub
parent 3c26996f93
commit 9847af7765
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 19 additions and 9 deletions

View file

@ -394,10 +394,13 @@ class InteractiveBrowser {
targetId: string,
) {
logger.info("Creating Profile Interactively...");
child_process.spawn("socat", [
"tcp-listen:9222,reuseaddr,fork",
"tcp:localhost:9221",
]);
if (params.headless) {
child_process.spawn("socat", [
"tcp-listen:9222,reuseaddr,fork",
"tcp:localhost:9221",
]);
}
this.params = params;
this.browser = browser;