gluon-web-admin: remove pubkey empty string workarround
Co-Authored-By: Matthias Schiffer <mschiffer@universe-factory.net>
This commit is contained in:
parent
816d2796be
commit
08a8ef0bcd
@ -18,17 +18,13 @@
|
|||||||
if active_vpn ~= nil then
|
if active_vpn ~= nil then
|
||||||
pubkey = active_vpn.public_key()
|
pubkey = active_vpn.public_key()
|
||||||
end
|
end
|
||||||
|
|
||||||
if pubkey == '' then
|
|
||||||
pubkey = nil
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
local values = {
|
local values = {
|
||||||
{ _('Hostname'), pretty_hostname.get(uci) },
|
{ _('Hostname'), pretty_hostname.get(uci) },
|
||||||
{ _('MAC address'), sysconfig.primary_mac },
|
{ _('MAC address'), sysconfig.primary_mac },
|
||||||
{ _('Hardware model'), platform.get_model() },
|
{ _('Hardware model'), platform.get_model() },
|
||||||
{ _('Gluon version') .. " / " .. _('Site version'), util.trim(util.readfile('/lib/gluon/gluon-version'))
|
{ _('Gluon version') .. " / " .. _('Site version'), util.trim(util.readfile('/lib/gluon/gluon-version'))
|
||||||
.. " / " .. util.trim(util.readfile('/lib/gluon/site-version')) },
|
.. " / " .. util.trim(util.readfile('/lib/gluon/site-version')) },
|
||||||
{ _('Firmware release'), util.trim(util.readfile('/lib/gluon/release')) },
|
{ _('Firmware release'), util.trim(util.readfile('/lib/gluon/release')) },
|
||||||
{ _('Site'), site.site_name() },
|
{ _('Site'), site.site_name() },
|
||||||
|
Loading…
Reference in New Issue
Block a user