[GO][EDIT] moved tls option to Features and renamed it to TLS

This commit is contained in:
BuildTools
2020-12-01 20:15:35 +01:00
parent 4ddcf3ecd5
commit 34a486986b
2 changed files with 2 additions and 2 deletions

View File

@@ -245,7 +245,7 @@ func collectorOptions() []collector.Option {
opts = append(opts, collector.WithTimeout(*timeout))
}
if *tls || cfg.tls {
if *tls || cfg.Features.TLS {
fmt.Printf("TLS activated\n");
opts = append(opts, collector.WithTLS(*insecure))
}