gluon-config-mode-mesh-vpn: fix variable msg that was defined inside if scope

This commit is contained in:
rubo77 2017-02-21 20:46:38 +01:00
parent 434da00e49
commit cd0366c739

View File

@ -14,11 +14,12 @@ local pubkey = ""
local hostname = pretty_hostname.get(uci)
local contact = uci:get_first("gluon-node-info", "owner", "contact")
local msg = ""
if meshvpn_enabled ~= "1" then
local msg = i18n.translate('gluon-config-mode:novpn')
msg = i18n.translate('gluon-config-mode:novpn')
else
pubkey = util.trim(util.exec("/etc/init.d/fastd show_key " .. "mesh_vpn"))
local msg = i18n.translate('gluon-config-mode:pubkey')
msg = i18n.translate('gluon-config-mode:pubkey')
end
return function ()