From f8e604082f0bc35d37f887a99b69ee1ca6fa9fde Mon Sep 17 00:00:00 2001 From: huohuohuohahei <147789862+huohuohuohahei@users.noreply.github.com> Date: Fri, 31 May 2024 00:30:19 +0800 Subject: [PATCH] PROXY_GUIDELINE.md Updates by Changyu Pang from Tsinghua (#41) * fix proxy readme * Add logs directory with .gitignore * Update PROXY_GUIDELINE.md --- PROXY_GUIDELINE.md | 14 +++++++++++++- logs/.gitignore | Bin 0 -> 34 bytes 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 logs/.gitignore diff --git a/PROXY_GUIDELINE.md b/PROXY_GUIDELINE.md index a1770db..913ddda 100644 --- a/PROXY_GUIDELINE.md +++ b/PROXY_GUIDELINE.md @@ -164,5 +164,17 @@ vmrun -T ws snapshot /path/to/vmx/file snapshot_name ``` ```python -env = DesktopEnv(snapshot_name="snapshot_name") +# Modify snapshot_name in "desktop_env/envs/desktop_env.py", line 50 +snapshot_name: str = "snapshot_name", ``` + +#### 4. Modify chrome startup command + +By searching `"--remote-debugging-port=1337"` , you can find all the places that involve Chrome startup commands, and add parameter `--proxy-server=host_IP:port` +```python +# example +# before +"command": ["google-chrome","--remote-debugging-port=1337"] +# after +"command": ["google-chrome","--remote-debugging-port=1337","--proxy-server=host_IP:port"] +``` \ No newline at end of file diff --git a/logs/.gitignore b/logs/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..21beb45a6ddd00aa724dfe43ab6a408829836343 GIT binary patch literal 34 kcmezWPm6(