upd doc
This commit is contained in:
parent
8c250aa76f
commit
8287809e31
|
@ -17,6 +17,7 @@ Dumbiest HTTP proxy ever.
|
||||||
* Supports client authentication with client TLS certificates
|
* Supports client authentication with client TLS certificates
|
||||||
* Supports HTTP/2
|
* Supports HTTP/2
|
||||||
* Resilient to DPI (including active probing, see `hidden_domain` option for authentication providers)
|
* Resilient to DPI (including active probing, see `hidden_domain` option for authentication providers)
|
||||||
|
* Connecting via upstream HTTP(S)/SOCKS5 proxies (proxy chaining)
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
|
@ -167,6 +168,7 @@ Authentication parameters are passed as URI via `-auth` parameter. Scheme of URI
|
||||||
|
|
||||||
```
|
```
|
||||||
$ ~/go/bin/dumbproxy -h
|
$ ~/go/bin/dumbproxy -h
|
||||||
|
Usage of /home/user/go/bin/dumbproxy:
|
||||||
-auth string
|
-auth string
|
||||||
auth parameters (default "none://")
|
auth parameters (default "none://")
|
||||||
-autocert
|
-autocert
|
||||||
|
@ -199,6 +201,8 @@ $ ~/go/bin/dumbproxy -h
|
||||||
update given htpasswd file and add/set password for username. Username and password can be passed as positional arguments or requested interactively
|
update given htpasswd file and add/set password for username. Username and password can be passed as positional arguments or requested interactively
|
||||||
-passwd-cost int
|
-passwd-cost int
|
||||||
bcrypt password cost (for -passwd mode) (default 4)
|
bcrypt password cost (for -passwd mode) (default 4)
|
||||||
|
-proxy value
|
||||||
|
upstream proxy URL. Can be repeated multiple times to chain proxies. Examples: socks5h://127.0.0.1:9050; https://user:password@example.com:443
|
||||||
-timeout duration
|
-timeout duration
|
||||||
timeout for network operations (default 10s)
|
timeout for network operations (default 10s)
|
||||||
-verbosity int
|
-verbosity int
|
||||||
|
|
2
main.go
2
main.go
|
@ -96,7 +96,7 @@ func parse_args() CLIArgs {
|
||||||
flag.StringVar(&args.passwd, "passwd", "", "update given htpasswd file and add/set password for username. "+
|
flag.StringVar(&args.passwd, "passwd", "", "update given htpasswd file and add/set password for username. "+
|
||||||
"Username and password can be passed as positional arguments or requested interactively")
|
"Username and password can be passed as positional arguments or requested interactively")
|
||||||
flag.IntVar(&args.passwdCost, "passwd-cost", bcrypt.MinCost, "bcrypt password cost (for -passwd mode)")
|
flag.IntVar(&args.passwdCost, "passwd-cost", bcrypt.MinCost, "bcrypt password cost (for -passwd mode)")
|
||||||
flag.Func("proxy", "upstream proxy URL. Can be repeated multiple times to chain proxies", func(p string) error {
|
flag.Func("proxy", "upstream proxy URL. Can be repeated multiple times to chain proxies. Examples: socks5h://127.0.0.1:9050; https://user:password@example.com:443", func(p string) error {
|
||||||
args.proxy = append(args.proxy, p)
|
args.proxy = append(args.proxy, p)
|
||||||
return nil
|
return nil
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue