Open iFission opened 3 months ago
use case: skip hostname verification
code allows for both insecureSkipTlsVerify and certs: https://github.com/danielqsj/kafka_exporter/blob/2e60c05d09b934c477e86426c36a59b2e40a90c1/kafka_exporter.go#L215
insecureSkipTlsVerify
config.Net.TLS.Config = &tls.Config{ ServerName: opts.tlsServerName, InsecureSkipVerify: opts.tlsInsecureSkipTLSVerify, }
use case: skip hostname verification
code allows for both
insecureSkipTlsVerify
and certs: https://github.com/danielqsj/kafka_exporter/blob/2e60c05d09b934c477e86426c36a59b2e40a90c1/kafka_exporter.go#L215