mirror of
https://github.com/webrecorder/browsertrix-crawler.git
synced 2025-10-19 14:33:17 +00:00
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:
parent
3c26996f93
commit
9847af7765
3 changed files with 19 additions and 9 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue