Skip to content

Commit 2419068

Browse files
committed
update docs
1 parent 561ce91 commit 2419068

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,10 @@ Usage of /home/user/go/bin/dumbproxy:
493493
timeout for shared resolves of DNS cache (default 5s)
494494
-dns-cache-ttl duration
495495
enable DNS cache with specified fixed TTL
496+
-dns-prefer-address value
497+
address resolution preference (none/ipv4/ipv6) (default ipv4)
498+
-dns-server value
499+
nameserver specification (udp://..., tcp://..., https://..., tls://..., doh://..., dot://..., default://). Option can be used multiple times for parallel use of multiple nameservers. Empty string resets the list
496500
-hmac-genkey
497501
generate hex-encoded HMAC signing key of optimal length
498502
-hmac-sign

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ func parse_args() CLIArgs {
383383
flag.Int64Var(&args.bwBurst, "bw-limit-burst", 0, "allowed burst size for bandwidth limit, how many \"tokens\" can fit into leaky bucket")
384384
flag.UintVar(&args.bwBuckets, "bw-limit-buckets", 1024*1024, "number of buckets of bandwidth limit")
385385
flag.BoolVar(&args.bwSeparate, "bw-limit-separate", false, "separate upload and download bandwidth limits")
386-
flag.Func("dns-server", "nameserver specification (udp://..., tcp://..., https://..., tls://..., doh://..., dot://..., default://). Option can be used multiple times for parallel use of multiple nameservers. Empty string resets list", func(p string) error {
386+
flag.Func("dns-server", "nameserver specification (udp://..., tcp://..., https://..., tls://..., doh://..., dot://..., default://). Option can be used multiple times for parallel use of multiple nameservers. Empty string resets the list", func(p string) error {
387387
if p == "" {
388388
args.dnsServers = nil
389389
} else {

0 commit comments

Comments
 (0)