// SPDX-License-Identifier: Apache-2.0 package prober import ( "crypto/tls" ) // tlsConfig builds a *tls.Config from explicit TLS parameters. func tlsConfig(serverName string, insecureSkipVerify bool) *tls.Config { return &tls.Config{ ServerName: serverName, InsecureSkipVerify: insecureSkipVerify, //nolint:gosec } }