mirror of
https://github.com/EchoVault/SugarDB.git
synced 2025-10-24 00:14:08 +08:00
Server log differentiates between starting TLS and mTLS server. Removed TLS minimum version in tls config.
This commit is contained in:
@@ -70,7 +70,11 @@ func (server *Server) StartTCP(ctx context.Context) {
|
|||||||
|
|
||||||
if conf.TLS || conf.MTLS {
|
if conf.TLS || conf.MTLS {
|
||||||
// TLS
|
// TLS
|
||||||
|
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)
|
fmt.Printf("Starting TLS server at Address %s, Port %d...\n", conf.BindAddr, conf.Port)
|
||||||
|
}
|
||||||
|
|
||||||
var certificates []tls.Certificate
|
var certificates []tls.Certificate
|
||||||
for _, certKeyPair := range conf.CertKeyPairs {
|
for _, certKeyPair := range conf.CertKeyPairs {
|
||||||
@@ -105,7 +109,6 @@ func (server *Server) StartTCP(ctx context.Context) {
|
|||||||
Certificates: certificates,
|
Certificates: certificates,
|
||||||
ClientAuth: clientAuth,
|
ClientAuth: clientAuth,
|
||||||
ClientCAs: clientCerts,
|
ClientCAs: clientCerts,
|
||||||
MinVersion: tls.VersionTLS13,
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user