Disable tls cert validation

This commit is contained in:
2026-03-07 16:32:22 +01:00
parent 7fdf60b578
commit 87510c10c4

View File

@@ -2,6 +2,7 @@ package speedport
import (
"crypto/sha256"
"crypto/tls"
"encoding/hex"
"encoding/json"
"fmt"
@@ -98,6 +99,9 @@ func NewClient(host string, opts ...ClientOption) (*Client, error) {
httpClient: &http.Client{
Timeout: defaultTimeout,
Jar: jar,
Transport: &http.Transport{
TLSClientConfig: &tls.Config{InsecureSkipVerify: true}, //nolint:gosec
},
},
logger: slog.Default(),
}