diff --git a/cmd/x509-certificate-exporter/main.go b/cmd/x509-certificate-exporter/main.go index 161890a..9aa497b 100644 --- a/cmd/x509-certificate-exporter/main.go +++ b/cmd/x509-certificate-exporter/main.go @@ -95,8 +95,8 @@ func main() { exporter := internal.Exporter{ ListenAddress: *listenAddress, - SystemdSocket: systemdSocket, - ConfigFile: configFile, + SystemdSocket: *systemdSocket, + ConfigFile: *configFile, Files: files, Directories: directories, YAMLs: yamls, diff --git a/internal/exporter.go b/internal/exporter.go index eb1234f..5fe6dfd 100644 --- a/internal/exporter.go +++ b/internal/exporter.go @@ -25,8 +25,8 @@ import ( // Exporter : Configuration (from command-line) type Exporter struct { ListenAddress string - SystemdSocket *bool - ConfigFile *string + SystemdSocket bool + ConfigFile string Files []string Directories []string YAMLs []string @@ -92,8 +92,8 @@ func (exporter *Exporter) Serve() error { toolkitFlags := web.FlagConfig{ WebListenAddresses: &[]string{exporter.ListenAddress}, - WebSystemdSocket: exporter.SystemdSocket, - WebConfigFile: exporter.ConfigFile, + WebSystemdSocket: &exporter.SystemdSocket, + WebConfigFile: &exporter.ConfigFile, } promlogConfig := &promlog.Config{}