Skip to content

Commit 58f4fe6

Browse files
committed
update readme
1 parent 6a0ef85 commit 58f4fe6

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,8 @@ Usage: dns2socks [OPTIONS]
3333
Options:
3434
-l, --listen-addr <IP:port> Listen address [default: 0.0.0.0:53]
3535
-d, --dns-remote-server <IP:port> Remote DNS server address [default: 8.8.8.8:53]
36-
-s, --socks5-server <IP:port> SOCKS5 proxy server address [default: 127.0.0.1:1080]
37-
-u, --username <user name> User name for SOCKS5 authentication
38-
-p, --password <password> Password for SOCKS5 authentication
36+
-s, --socks5-settings <URL> SOCKS5 URL in the form socks5://[username[:password]@]host:port, Username and password are encoded in percent
37+
encoding. For example: socks5://myname:pass%[email protected]:1080 [default: socks5://127.0.0.1:1080]
3938
-f, --force-tcp Force to use TCP to proxy DNS query
4039
-c, --cache-records Cache DNS query records
4140
-v, --verbosity <level> Verbosity level [default: info] [possible values: off, error, warn, info, debug, trace]

src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ pub struct Config {
1616
/// SOCKS5 URL in the form socks5://[username[:password]@]host:port,
1717
/// Username and password are encoded in percent encoding. For example:
1818
/// socks5://myname:pass%[email protected]:1080
19-
#[arg(short, long, value_parser = |s: &str| ArgProxy::try_from(s), value_name = "URL")]
19+
#[arg(short, long, value_parser = |s: &str| ArgProxy::try_from(s), value_name = "URL", default_value = "socks5://127.0.0.1:1080")]
2020
pub socks5_settings: ArgProxy,
2121

2222
/// Force to use TCP to proxy DNS query

0 commit comments

Comments
 (0)