diff options
author | FChannel <> | 2022-06-16 13:59:15 -0700 |
---|---|---|
committer | FChannel <> | 2022-06-19 12:53:29 -0700 |
commit | bc096c388bb0beeee09fa866a55ea1fbb41b9cb6 (patch) | |
tree | eefde542c7921e7422b3e2012c3b85b9d0e261fb /main.go | |
parent | aebf10de3b631f452600a5b31c1f43c1bbf8bdf2 (diff) |
config to set static modkey instead of randomly generate
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -143,8 +143,10 @@ func Init() { config.Log.Println(err) } - if config.Key, err = util.CreateKey(32); err != nil { - config.Log.Println(err) + if config.Key == "" { + if config.Key, err = util.CreateKey(32); err != nil { + config.Log.Println(err) + } } if err = util.LoadThemes(); err != nil { |