[GO][EDIT] Added tls flag in config file

This commit is contained in:
2020-12-01 20:05:51 +01:00
parent d3285ba301
commit 3ccd8caa23
2 changed files with 3 additions and 1 deletions

View File

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