Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2022-06-27 00:20:04 +03:00
parent eb8c1332f0
commit 4a8f490e0c

View File

@ -179,7 +179,7 @@ type ServerOption func(*ServerOptions)
func NewServerConfig(src *tls.Config) *tls.Config { func NewServerConfig(src *tls.Config) *tls.Config {
dst := src.Clone() dst := src.Clone()
dst.InsecureSkipVerify = true // dst.InsecureSkipVerify = true
dst.MinVersion = tls.VersionTLS13 dst.MinVersion = tls.VersionTLS13
dst.ClientAuth = tls.VerifyClientCertIfGiven dst.ClientAuth = tls.VerifyClientCertIfGiven
return dst return dst