mirror of
https://github.com/gravitl/netmaker.git
synced 2026-04-23 00:17:10 +08:00
removed default master key and added warning log if not set
This commit is contained in:
@@ -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 != "" {
|
||||
|
||||
Reference in New Issue
Block a user