From d44c76db4e56099567bd7f1bace5ef5b4966d74b Mon Sep 17 00:00:00 2001 From: Kelvin Clement Mwinuka Date: Sun, 11 Feb 2024 16:37:58 +0800 Subject: [PATCH] Server log differentiates between starting TLS and mTLS server. Removed TLS minimum version in tls config. --- src/server/server.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/server/server.go b/src/server/server.go index 5397df11..973447ab 100644 --- a/src/server/server.go +++ b/src/server/server.go @@ -70,7 +70,11 @@ func (server *Server) StartTCP(ctx context.Context) { if conf.TLS || conf.MTLS { // TLS - fmt.Printf("Starting TLS server at Address %s, Port %d...\n", conf.BindAddr, conf.Port) + if conf.TLS { + fmt.Printf("Starting mTLS server at Address %s, Port %d...\n", conf.BindAddr, conf.Port) + } else { + fmt.Printf("Starting TLS server at Address %s, Port %d...\n", conf.BindAddr, conf.Port) + } var certificates []tls.Certificate for _, certKeyPair := range conf.CertKeyPairs { @@ -105,7 +109,6 @@ func (server *Server) StartTCP(ctx context.Context) { Certificates: certificates, ClientAuth: clientAuth, ClientCAs: clientCerts, - MinVersion: tls.VersionTLS13, }) }