Rename insecure flag to insecure-skip-tls-verify

This commit is contained in:
dgudim
2025-12-08 22:48:49 +02:00
committed by Manuel Rüger
parent b36d7aa135
commit e82c425471
3 changed files with 15 additions and 15 deletions

View File

@@ -98,7 +98,7 @@ func (tracer *tracer) Printf(format string, args ...interface{}) {
log.Tracef(nil, tracer.prefix+" "+format, args...)
}
func NewAPI(baseURL string, username string, password string, insecure bool) *API {
func NewAPI(baseURL string, username string, password string, insecureSkipVerify bool) *API {
var auth *gopencils.BasicAuth
if username != "" {
auth = &gopencils.BasicAuth{
@@ -108,7 +108,7 @@ func NewAPI(baseURL string, username string, password string, insecure bool) *AP
}
var httpClient *http.Client
if insecure {
if insecureSkipVerify {
httpClient = &http.Client{
Transport: &http.Transport{
TLSClientConfig: &tls.Config{