Skip to content

Commit 22cd7e0

Browse files
committed
doc: some doc
Signed-off-by: Dream95 <zhou_8621@163.com>
1 parent b0e690b commit 22cd7e0

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,12 @@ sudo ./gotproxy --proto udp
7878

7979
5. Proxy by container name:
8080
```bash
81-
sudo ./gotproxy --container-name test-kyanos
81+
sudo ./gotproxy --container-name curl-test
8282
```
8383

8484
6. Use container and pid together:
8585
```bash
86-
sudo ./gotproxy --container-name test-kyanos --pids 1234
86+
sudo ./gotproxy --container-name curl-test --pids 1234
8787
```
8888
When multiple process/container filters are specified (such as `--container-name`, `--cmd`, `--pids`), they use OR semantics: matching any one filter will be proxied.
8989

@@ -95,6 +95,8 @@ When multiple process/container filters are specified (such as `--container-name
9595

9696
* The current implementation of UDP proxy is not perfect, and there may be issues in certain scenarios.
9797

98+
* If your distro uses `127.0.0.53` for DNS, switch to a real upstream DNS , otherwise DNS may fail.
99+
98100
## Thanks
99101
Some code is referenced from
100102

README_CN.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,20 +83,20 @@ sudo ./gotproxy --proto udp
8383

8484
5. 按容器名称代理:
8585
```bash
86-
sudo ./gotproxy --container-name test-kyanos
86+
sudo ./gotproxy --container-name curl-test
8787
```
8888

8989
6. 容器名 + pid 同时过滤:
9090
```bash
91-
sudo ./gotproxy --container-name test-kyanos --pids 1234
91+
sudo ./gotproxy --container-name curl-test --pids 1234
9292
```
9393
当同时配置多个进程/容器过滤条件(如 `--container-name``--cmd``--pids`)时,使用 OR 关系:命中任意一个条件就会被代理。
9494

9595
## 已知限制:
9696
* 理论上应该根据5元组确定一个连接,但是考虑大多数情况目前只根据协议类型和源端口进行连接映射。
9797
* 在根据进程名称进行代理的场景中,如果进程启动了子进程并使用了execve执行一个新命令,会无法进行代理。
9898
* 目前的udp代理实现并不完善,某些场景下可能存在问题。
99-
99+
* 如果你的 Linux 发行版使用 `127.0.0.53` 作为 DNS 需要将 DNS 指向真实的上游服务器,否则可能出现域名解析异常。
100100

101101
## 感谢
102102
一些代码引用自:

0 commit comments

Comments
 (0)