Skip to content

Commit c320297

Browse files
committed
Adjust README.md
1 parent bbbca7c commit c320297

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

README.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,27 @@ Daze is implemented in pure Go language, so it can run on almost any operating s
4747
0. Chrome. Chrome does not support setting proxies, so a third-party plugin must be used. [Proxy SwitchyOmega](https://chrome.google.com/webstore/detail/proxy-switchyomega/padekgcemlokbadohgkifijomclgjgif?hl=en) works very well.
4848
0. Firefox can configure a proxy in `Connection Settings` -> `Manual proxy configuration` -> `SOCKSv5 Host=127.0.0.1` and `Port=1080`. If you see an option `Use remote DNS` on the page, check it.
4949

50+
## Configuration: Bandwidth Limiter
51+
52+
You can limit the maximum bandwidth used by daze. Generally speaking, for daze server, it is recommended to set the bandwidth to a value slightly smaller than the physical bandwidth.
53+
54+
```sh
55+
# For daze server, set -b 320k if your physical bandwidth is 3M, where 320 = 3 * 1024 / 8 - 64.
56+
$ daze server ... -b 320k
57+
# For daze client, in most cases no configuration is necessary.
58+
$ daze client ...
59+
```
60+
61+
## Configuration: DNS
62+
63+
The DNS server and DNS protocol used by daze can be specified through command line parameters.
64+
65+
- `DNS: daze ... -dns 1.1.1.1:53`
66+
- `DoT: daze ... -dns 1.1.1.1:853`
67+
- `DoH: daze ... -dns https://1.1.1.1/dns-query`
68+
69+
This [article](https://www.cloudflare.com/learning/dns/dns-over-tls/) briefly describes the difference between them.
70+
5071
## Configuration: Protocols
5172

5273
Daze currently has 4 protocols.
@@ -117,27 +138,6 @@ Daze also uses a CIDR(Classless Inter-Domain Routing) file to route addresses. T
117138

118139
By default, daze has configured rule.cidr for China's mainland. You can update it manually via `daze gen cn`, this will pull the latest data from [http://ftp.apnic.net/apnic/stats/apnic/delegated-apnic-latest](http://ftp.apnic.net/apnic/stats/apnic/delegated-apnic-latest).
119140

120-
## Configuration: DNS
121-
122-
The DNS server and DNS protocol used by daze can be specified through command line parameters.
123-
124-
- `DNS: daze ... -dns 1.1.1.1:53`
125-
- `DoT: daze ... -dns 1.1.1.1:853`
126-
- `DoH: daze ... -dns https://1.1.1.1/dns-query`
127-
128-
This [article](https://www.cloudflare.com/learning/dns/dns-over-tls/) briefly describes the difference between them.
129-
130-
## Configuration: Bandwidth Limiter
131-
132-
You can limit the maximum bandwidth used by daze. Generally speaking, for daze server, it is recommended to set the bandwidth to a value slightly smaller than the physical bandwidth.
133-
134-
```sh
135-
# For daze server, set -b 320k if your physical bandwidth is 3M, where 320 = 3 * 1024 / 8 - 64.
136-
$ daze server ... -b 320k
137-
# For daze client, in most cases no configuration is necessary.
138-
$ daze client ...
139-
```
140-
141141
## License
142142

143143
MIT.

0 commit comments

Comments
 (0)