1
0
Fork 0
mirror of https://github.com/postmannen/ctrl.git synced 2024-12-14 12:37:31 +00:00

loading nodeAcl from file

This commit is contained in:
postmannen 2022-05-24 13:53:37 +02:00
parent ba39e241e4
commit aafa11aa25

View file

@ -91,6 +91,12 @@ func newNodeAcl(c *Configuration) *nodeAcl {
filePath: filepath.Join(c.DatabaseFolder, "acl.txt"),
}
err := n.loadFromFile()
if err != nil {
log.Printf("error: loading acl's from file: %v\n", err)
// os.Exit(1)
}
return &n
}