Fix allow.list file discovery bug
This commit is contained in:
parent
4cba698f4a
commit
6fbc8587b2
|
@ -134,7 +134,8 @@ func (al *allowList) save(item *allowItem) {
|
||||||
|
|
||||||
f, err := os.Create(al.filepath)
|
f, err := os.Create(al.filepath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
logger.Warn().Err(err).Msg("Failed to write allow list to file")
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
defer f.Close()
|
defer f.Close()
|
||||||
|
|
Loading…
Reference in New Issue