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:
parent
ba39e241e4
commit
aafa11aa25
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue