From 02eff463a1b5ae6dd5bd966bb84a55ab45e4e500 Mon Sep 17 00:00:00 2001 From: Vladislav Yarmak Date: Sun, 2 Apr 2023 00:08:35 +0300 Subject: [PATCH] update help and docs --- README.md | 3 ++- main.go | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index aa0240d..f9a33f9 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,7 @@ Dumbest HTTP proxy ever. * Supports HTTP/2 * Resilient to DPI (including active probing, see `hidden_domain` option for authentication providers) * Connecting via upstream HTTP(S)/SOCKS5 proxies (proxy chaining) +* systemd socket activation ## Installation @@ -184,7 +185,7 @@ Usage of /home/user/go/bin/dumbproxy: -autocert-whitelist value restrict autocert domains to this comma-separated list -bind-address string - HTTP proxy listen address (default ":8080") + HTTP proxy listen address. Set empty value to use systemd socket activation. (default ":8080") -cafile string CA file to authenticate clients with certificates -cert string diff --git a/main.go b/main.go index 34a741b..7d8b812 100644 --- a/main.go +++ b/main.go @@ -76,7 +76,7 @@ type CLIArgs struct { func parse_args() CLIArgs { var args CLIArgs - flag.StringVar(&args.bind_address, "bind-address", ":8080", "HTTP proxy listen address") + flag.StringVar(&args.bind_address, "bind-address", ":8080", "HTTP proxy listen address. Set empty value to use systemd socket activation.") flag.StringVar(&args.auth, "auth", "none://", "auth parameters") flag.IntVar(&args.verbosity, "verbosity", 20, "logging verbosity "+ "(10 - debug, 20 - info, 30 - warning, 40 - error, 50 - critical)")