mirror of
https://github.com/gravitl/netmaker.git
synced 2024-09-20 23:36:18 +08:00
use local variable for mq configuration
This commit is contained in:
parent
9eed7d50a1
commit
6b8d633386
|
@ -132,7 +132,9 @@ func encodePasswordToPBKDF2(password string, salt string, iterations int, keyLen
|
|||
|
||||
// Configure - configures the dynamic initial configuration for MQ
|
||||
func Configure() error {
|
||||
|
||||
logger.Log(0, "Configuring MQ...")
|
||||
dynConfig := dynConfigInI
|
||||
path := functions.GetNetmakerPath() + ncutils.GetSeparator() + dynamicSecurityFile
|
||||
|
||||
password := servercfg.GetMqAdminPassword()
|
||||
|
|
|
@ -26,7 +26,7 @@ const (
|
|||
|
||||
var (
|
||||
// default configuration of dynamic security
|
||||
dynConfig = dynJSON{
|
||||
dynConfigInI = dynJSON{
|
||||
Clients: []client{
|
||||
{
|
||||
Username: mqAdminUserName,
|
||||
|
|
Loading…
Reference in a new issue