Skip to content

Commit 452b494

Browse files
committed
Improve readme
1 parent 9a01b72 commit 452b494

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

readme.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
`pd` is a local proxy dispatcher.
22

3+
## Usage
4+
Try `pd -h`.
35

46
## Dos
57
* Sub-domain rule first.
68
* Static `blocked` hosts (IPs) go proxied directly.
79
* Static `direct` hosts (IPs) always go direct (Never proxied). `direct` > `blocked`.
8-
* General hosts, go direct as dynamically calculated times, if unsolved, go proxied using the top 3 fastest proxies in order, fall back to a direct try if directly went proxied but no proxy configured.
9-
* Trust the specified DNS. If the DNS isn't reliable enough, improve it, or place the special host in `blocked` to go proxied directly. Use `0.0.0.0`/`::` or disabled domains to block hosts. `127.0.0.1`/`::1` or other reserved IPs are legal to be a server.
10+
* General hosts, go direct as dynamically calculated times, if unsolved, go proxied with 3 tries using the fastest proxies in order, fall back to a direct try if directly went proxied but no proxy configured.
11+
* Trust the specified DNS. If the DNS isn't reliable enough, improve it, or place the special host in `blocked` to go proxied directly. For DNS servers, use `0.0.0.0`/`::` or disabled domain list to block hosts, `127.0.0.1`/`::1` or other reserved IPs are legal to be a server.
1012
* Forward going proxied requests to the same protocol proxy. `socks4a` is a super set of `socks4`.
1113

1214
## Don'ts
13-
* No proxy authentication. No need for local proxies.
14-
* No request on Non-Global-Internet-IP or No-domain- host will go proxied.
15-
15+
* Proxy authentication. No need for local proxies.
16+
* Non-Global-Internet-IPs or No-domain-hosts go to upstream proxies.
1617

1718
## Static Host Matching Syntax
1819

@@ -44,7 +45,6 @@ wikipedia.org
4445
192.168.*
4546
```
4647

47-
4848
## Statistics Vs Privacy
4949

5050
`pd` stores the dynamic statistics of hosts for the last 24h, including "host/IP:port" pairs, EWMA of the last 10 connections, visit count, and the last visit time. It is required to implement the dynamic dispatching.

0 commit comments

Comments
 (0)