OPENBUS-2968 Reconfiguração dinâmica do barramento

Correção no reuso da variável errcode de mesmo nome mas de escopos
diferentes. Estava causando o seguinte erro:

  main.lua:421: attempt to index local 'errcode' (a nil value)
parent 3c37329d
......@@ -408,8 +408,10 @@ Options:
return errcode.InvalidPasswordValidationRate
end
local res, errcode = validateMaxChannels(Configs.maxchannels)
if not res then return errcode end
do
local res, errcode = validateMaxChannels(Configs.maxchannels)
if not res then return errcode end
end
-- load private key
local prvkey, errmsg = readprivatekey(Configs.privatekey)
......@@ -471,8 +473,10 @@ Options:
end
-- load all password validators to be used
local res, errcode = loadValidators()
if not res then return errcode end
do
local res, errcode = loadValidators()
if not res then return errcode end
end
-- create a set of admin users
setAdminUsers()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment