mirror of
https://github.com/enix/x509-certificate-exporter.git
synced 2026-08-23 22:16:39 +00:00
Fix issue.
This commit is contained in:
committed by
Thibault VINCENT
parent
2e6bb68301
commit
fc6e36671f
@@ -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,
|
||||
|
||||
@@ -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{}
|
||||
|
||||
Reference in New Issue
Block a user