From b0e08b6212fee1b74e18be07266524f40a32dd0a Mon Sep 17 00:00:00 2001 From: Vladislav Yarmak Date: Wed, 6 Sep 2023 18:21:19 +0300 Subject: [PATCH] upd doc --- README.md | 4 ++-- main.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 0d6bf63..20a38f9 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/main.go b/main.go index 0b4a925..c8339a8 100644 --- a/main.go +++ b/main.go @@ -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()