优化代码

This commit is contained in:
wsczx
2023-04-06 12:29:21 +08:00
parent b3e7212b03
commit bc7c61c337
5 changed files with 211 additions and 238 deletions

View File

@@ -50,10 +50,6 @@ func startTls() {
MinVersion: tls.VersionTLS12,
CipherSuites: selectedCipherSuites,
GetCertificate: func(*tls.ClientHelloInfo) (*tls.Certificate, error) {
// cert, err := tls.LoadX509KeyPair(base.Cfg.CertFile, base.Cfg.CertKey)
// if err != nil {
// return nil, err
// }
return dbdata.TLSCert, nil
},
// InsecureSkipVerify: true,