From 1c32bd829b39091a007263f01e92c57ab1b34b51 Mon Sep 17 00:00:00 2001 From: Shlomo Heigh Date: Tue, 25 Jun 2024 10:34:55 -0400 Subject: [PATCH] CNJR-5372: Fix 'nosec' comments --- tds.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tds.go b/tds.go index d9aa5007..f70c6dc6 100644 --- a/tds.go +++ b/tds.go @@ -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