Skip to content

Commit 3415214

Browse files
committed
Update readme.md
1 parent d2fbabb commit 3415214

File tree

1 file changed

+28
-2
lines changed

1 file changed

+28
-2
lines changed

readme.md

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,19 @@
1010

1111
## 用法
1212

13-
`pd -h`.
13+
详参 `pd -h`.
14+
15+
例子:
16+
17+
Windows 只服务本机
18+
```bat
19+
start pd.exe -proxies=http://127.0.0.1:1080,http://127.0.0.1:2080,http://127.0.0.1:3080,socks5://127.0.0.1:1081,socks5://127.0.0.1:2081,socks5://127.0.0.1:3081,socks4a://127.0.0.1:2081 -netprobeurl=https://www.toutiao.com
20+
```
21+
22+
*nix 服务路由器下的局域网
23+
```sh
24+
pd -proxies=http://127.0.0.1:1080,http://127.0.0.1:2080,http://127.0.0.1:3080,socks5://127.0.0.1:1081,socks5://127.0.0.1:2081,socks5://127.0.0.1:3081,socks4a://127.0.0.1:2081 -netprobeurl=https://www.toutiao.com -listens=192.168.2.1:6699 -direct=/etc/pd/direct -blocked=/etc/pd/blocked -statfile=/tmp/stat.json
25+
```
1426

1527
## 支持
1628
* 静态规则:子域名优先。
@@ -25,6 +37,7 @@
2537

2638
* 代理做身份验证。本地代理没必要。
2739
* 非公网 IP 或者非域名通信被传递到上游代理。
40+
* SOCKS BIND 和 UDP。
2841

2942
## 静态主机名匹配语法
3043

@@ -88,7 +101,19 @@ https://github.com/lifenjoiner/pd
88101

89102
## Usage
90103

91-
Try `pd -h`.
104+
Try `pd -h` for details.
105+
106+
Examples:
107+
108+
Windows serves only yourself
109+
```bat
110+
start pd.exe -proxies=http://127.0.0.1:1080,http://127.0.0.1:2080,http://127.0.0.1:3080,socks5://127.0.0.1:1081,socks5://127.0.0.1:2081,socks5://127.0.0.1:3081,socks4a://127.0.0.1:2081 -netprobeurl=https://www.toutiao.com
111+
```
112+
113+
*nix serves for the LAN of a router
114+
```sh
115+
pd -proxies=http://127.0.0.1:1080,http://127.0.0.1:2080,http://127.0.0.1:3080,socks5://127.0.0.1:1081,socks5://127.0.0.1:2081,socks5://127.0.0.1:3081,socks4a://127.0.0.1:2081 -netprobeurl=https://www.toutiao.com -listens=192.168.2.1:6699 -direct=/etc/pd/direct -blocked=/etc/pd/blocked -statfile=/tmp/stat.json
116+
```
92117

93118
## Dos
94119
* Static rules: sub-domain first.
@@ -103,6 +128,7 @@ Try `pd -h`.
103128

104129
* Proxy authentication. No need for local proxies.
105130
* Non-Global-Internet-IPs or Non-domain-hosts go to upstream proxies.
131+
* SOCKS BIND and UDP.
106132

107133
## Static Host Matching Syntax
108134

0 commit comments

Comments
 (0)