Skip to content

Commit a4f1dec

Browse files
authored
fix: Fixed incorrect VerifySSL setting implementation (#989)
1 parent f886733 commit a4f1dec

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

go/rtl/auth.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ type AuthSession struct {
4444
func NewAuthSession(config ApiSettings) *AuthSession {
4545
tr := &http.Transport{
4646
TLSClientConfig: &tls.Config{
47-
InsecureSkipVerify: config.VerifySsl,
47+
InsecureSkipVerify: !config.VerifySsl,
4848
},
4949
}
5050
return &AuthSession{
@@ -53,6 +53,7 @@ func NewAuthSession(config ApiSettings) *AuthSession {
5353
}
5454
}
5555

56+
// The transport parameter may override your VerifySSL setting
5657
func NewAuthSessionWithTransport(config ApiSettings, transport http.RoundTripper) *AuthSession {
5758
return &AuthSession{
5859
Config: config,

0 commit comments

Comments
 (0)