From b29a22095f6e4d796a64b1351fcf27b3bdb40fd8 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Wed, 24 Apr 2024 15:34:27 +0300 Subject: [PATCH] http: fix addr CLI arg help text This was missing the fact rclone also supports listening on Unix Domain Sockets. --- lib/http/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/http/server.go b/lib/http/server.go index 518f07f7f..2b5270d98 100644 --- a/lib/http/server.go +++ b/lib/http/server.go @@ -174,7 +174,7 @@ type Config struct { // AddFlagsPrefix adds flags for the httplib func (cfg *Config) AddFlagsPrefix(flagSet *pflag.FlagSet, prefix string) { - flags.StringArrayVarP(flagSet, &cfg.ListenAddr, prefix+"addr", "", cfg.ListenAddr, "IPaddress:Port or :Port to bind server to", prefix) + flags.StringArrayVarP(flagSet, &cfg.ListenAddr, prefix+"addr", "", cfg.ListenAddr, "IPaddress:Port, :Port or [unix://]/path/to/socket to bind server to", prefix) flags.DurationVarP(flagSet, &cfg.ServerReadTimeout, prefix+"server-read-timeout", "", cfg.ServerReadTimeout, "Timeout for server reading data", prefix) flags.DurationVarP(flagSet, &cfg.ServerWriteTimeout, prefix+"server-write-timeout", "", cfg.ServerWriteTimeout, "Timeout for server writing data", prefix) flags.IntVarP(flagSet, &cfg.MaxHeaderBytes, prefix+"max-header-bytes", "", cfg.MaxHeaderBytes, "Maximum size of request header", prefix)