aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorFChannel <>2022-06-16 13:59:15 -0700
committerFChannel <>2022-06-19 12:53:29 -0700
commitbc096c388bb0beeee09fa866a55ea1fbb41b9cb6 (patch)
treeeefde542c7921e7422b3e2012c3b85b9d0e261fb /main.go
parentaebf10de3b631f452600a5b31c1f43c1bbf8bdf2 (diff)
config to set static modkey instead of randomly generate
Diffstat (limited to 'main.go')
-rw-r--r--main.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/main.go b/main.go
index d362244..b570102 100644
--- a/main.go
+++ b/main.go
@@ -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 {