mirror of
https://github.com/ngoduykhanh/wireguard-ui.git
synced 2025-04-20 20:03:39 +03:00
Cache user crc32 on db init (fix for #523)
This commit is contained in:
parent
7856ce9555
commit
32339d5d5a
1 changed files with 1 additions and 0 deletions
|
@ -154,6 +154,7 @@ func (o *JsonDB) Init() error {
|
|||
}
|
||||
|
||||
o.conn.Write("users", user.Username, user)
|
||||
results, _ = o.conn.ReadAll("users")
|
||||
err = util.ManagePerms(path.Join(path.Join(o.dbPath, "users"), user.Username+".json"))
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
Loading…
Add table
Reference in a new issue