This commit is contained in:
Vladislav Yarmak 2023-09-06 18:21:19 +03:00
parent fd303bda12
commit b0e08b6212
2 changed files with 3 additions and 3 deletions

View File

@ -194,8 +194,8 @@ Usage of /home/user/go/bin/dumbproxy:
colon-separated list of enabled ciphers
-disable-http2
disable HTTP2
-ip-hints value
a comma-separated list of source addresses to use on dial attempts. Example: "10.0.0.1,fe80::2,0.0.0.0,::"
-ip-hints string
a comma-separated list of source addresses to use on dial attempts. "$lAddr" gets expanded to local address of connection. Example: "10.0.0.1,fe80::2,$lAddr,0.0.0.0,::"
-key string
key for TLS certificate
-list-ciphers

View File

@ -103,7 +103,7 @@ func parse_args() CLIArgs {
args.proxy = append(args.proxy, p)
return nil
})
flag.StringVar(&args.sourceIPHints, "ip-hints", "", "a comma-separated list of source addresses to use on dial attempts. Example: \"10.0.0.1,fe80::2,0.0.0.0,::\"")
flag.StringVar(&args.sourceIPHints, "ip-hints", "", "a comma-separated list of source addresses to use on dial attempts. \"$lAddr\" gets expanded to local address of connection. Example: \"10.0.0.1,fe80::2,$lAddr,0.0.0.0,::\"")
flag.BoolVar(&args.userIPHints, "user-ip-hints", false, "allow IP hints to be specified by user in X-Src-IP-Hints header")
flag.Parse()
args.positionalArgs = flag.Args()