removed default master key and added warning log if not set

This commit is contained in:
0xdcarns
2022-02-14 09:58:50 -05:00
parent 816e0a3dd6
commit 51fa553df3
6 changed files with 10 additions and 11 deletions
+1 -1
View File
@@ -266,7 +266,7 @@ func GetMessageQueueEndpoint() string {
// GetMasterKey - gets the configured master key of server
func GetMasterKey() string {
key := "secretkey"
key := ""
if os.Getenv("MASTER_KEY") != "" {
key = os.Getenv("MASTER_KEY")
} else if config.Config.Server.MasterKey != "" {