update github actions (#3538)

This commit is contained in:
fatedier
2023-07-21 10:30:46 +08:00
committed by GitHub
parent efcc028a3d
commit 46ff40543a
33 changed files with 72 additions and 108 deletions

View File

@@ -103,9 +103,7 @@ func NewServerTLSConfig(certPath, keyPath, caPath string) (*tls.Config, error) {
func NewClientTLSConfig(certPath, keyPath, caPath, serverName string) (*tls.Config, error) {
base := &tls.Config{}
if certPath == "" || keyPath == "" {
// client will not generate tls conf by itself
} else {
if certPath != "" && keyPath != "" {
cert, err := newCustomTLSKeyPair(certPath, keyPath)
if err != nil {
return nil, err