support tls insecure due to cloudblade old TLS cert

This commit is contained in:
2026-07-05 14:53:10 -04:00
parent 059b89b5cd
commit a8e0a6ef1e
2 changed files with 12 additions and 0 deletions
+9
View File
@@ -5,8 +5,10 @@ package econet
import (
"context"
"crypto/tls"
"fmt"
"log/slog"
"net/http"
rheemcloud "github.com/kevinburke/rheemcloud-go"
@@ -55,6 +57,13 @@ func connect(ctx context.Context, cfg *config.ServiceConfig) (*rheemcloud.Client
}
client, err := rheemcloud.Connect(ctx, cfg.EconetEmail, cfg.EconetPassword, &rheemcloud.Config{
Logger: slog.Default(),
HTTPClient: &http.Client{
Transport: &http.Transport{
TLSClientConfig: &tls.Config{
InsecureSkipVerify: cfg.EconetTLSInsecure,
},
},
},
})
if err != nil {
return nil, fmt.Errorf("econet: connect failed: %w", err)