gluon-config-mode-mesh-vpn: don't initialize empty variables msg and pubkey
This commit is contained in:
parent
cd0366c739
commit
b4a2529f67
@ -10,11 +10,11 @@ local sysconfig = require 'gluon.sysconfig'
|
|||||||
|
|
||||||
local pretty_hostname = require 'pretty_hostname'
|
local pretty_hostname = require 'pretty_hostname'
|
||||||
|
|
||||||
local pubkey = ""
|
local pubkey
|
||||||
local hostname = pretty_hostname.get(uci)
|
local hostname = pretty_hostname.get(uci)
|
||||||
local contact = uci:get_first("gluon-node-info", "owner", "contact")
|
local contact = uci:get_first("gluon-node-info", "owner", "contact")
|
||||||
|
|
||||||
local msg = ""
|
local msg
|
||||||
if meshvpn_enabled ~= "1" then
|
if meshvpn_enabled ~= "1" then
|
||||||
msg = i18n.translate('gluon-config-mode:novpn')
|
msg = i18n.translate('gluon-config-mode:novpn')
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user