Skip to content

Commit

Permalink
CNJR-5372: Fix 'nosec' comments
Browse files Browse the repository at this point in the history
  • Loading branch information
szh committed Jun 25, 2024
1 parent a71a7cb commit 1c32bd8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tds.go
Original file line number Diff line number Diff line change
Expand Up @@ -1131,13 +1131,11 @@ initiate_connection:
certs.AppendCertsFromPEM([]byte(p.rawCertificate))
config.RootCAs = certs
}
/* #nosec */
if p.trustServerCertificate {
config.InsecureSkipVerify = true
config.InsecureSkipVerify = true // #nosec
}
/* #nosec */
if p.disableVerifyHostname {
config.InsecureSkipVerify = true
config.InsecureSkipVerify = true // #nosec
}
config.ServerName = p.hostInCertificate
// fix for https://github.com/denisenkom/go-mssqldb/issues/166
Expand Down

0 comments on commit 1c32bd8

Please sign in to comment.