From aafa11aa25409ea5f128a9187c7900bcf7ab0549 Mon Sep 17 00:00:00 2001 From: postmannen Date: Tue, 24 May 2022 13:53:37 +0200 Subject: [PATCH] loading nodeAcl from file --- node_auth.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/node_auth.go b/node_auth.go index e531058..a750037 100644 --- a/node_auth.go +++ b/node_auth.go @@ -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 }