diff --git a/lxDb/db.go b/lxDb/db.go index 93465af..31fe504 100644 --- a/lxDb/db.go +++ b/lxDb/db.go @@ -100,8 +100,8 @@ func InitDB(env string, conf DbConfig) { tlsConfig := &tls.Config{ RootCAs: caCertPool, // 信任的CA //Certificates: []tls.Certificate{cert}, // 客户端证书 - ServerName: conf.Host, - MinVersion: tls.VersionTLS12, // 最小TLS版本 + //ServerName: conf.Host, + //MinVersion: tls.VersionTLS12, // 最小TLS版本 } // 5. 注册自定义TLS配置到MySQL驱动