From 947db825db152591671c709ee73b3b16633c61cf Mon Sep 17 00:00:00 2001 From: Ben Bek Date: Wed, 1 Feb 2023 20:15:02 +0200 Subject: [PATCH] Add a Verbose flag to Server This makes the Chisel server use a verbosity flag, in a similar way to the client --- server/server.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/server.go b/server/server.go index b7df1282..811e1858 100644 --- a/server/server.go +++ b/server/server.go @@ -30,6 +30,7 @@ type Config struct { Reverse bool KeepAlive time.Duration TLS TLSConfig + Verbose bool } // Server respresent a chisel service @@ -59,7 +60,7 @@ func NewServer(c *Config) (*Server, error) { Logger: cio.NewLogger("server"), sessions: settings.NewUsers(), } - server.Info = true + server.Info = c.Verbose server.users = settings.NewUserIndex(server.Logger) if c.AuthFile != "" { if err := server.users.LoadUsers(c.AuthFile); err != nil {