You've already forked prometheus-fail2ban-exporter
Compare commits
2 Commits
08081f7c05
...
2d343b6c70
Author | SHA1 | Date | |
---|---|---|---|
2d343b6c70
|
|||
878a0194ae
|
@ -37,6 +37,7 @@ func (c *Collector) collectFileContents() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fullPath := filepath.Join(c.folderPath, fileName)
|
fullPath := filepath.Join(c.folderPath, fileName)
|
||||||
|
// #nosec G304
|
||||||
content, err := os.ReadFile(fullPath)
|
content, err := os.ReadFile(fullPath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
c.appendErrorForPath(fileName)
|
c.appendErrorForPath(fileName)
|
||||||
|
Reference in New Issue
Block a user