From bc6f4ae6c4ef875a09cdc85dad0608da042e4b02 Mon Sep 17 00:00:00 2001 From: wangjie Date: Sat, 26 Jul 2025 00:58:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=96=E6=B6=88servername=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lxDb/db.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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驱动