diff --git a/package/gluon-mesh-vpn-tunneldigger/files/lib/gluon/announce/nodeinfo.d/software/tunneldigger b/package/gluon-mesh-vpn-tunneldigger/files/lib/gluon/announce/nodeinfo.d/software/tunneldigger index d5e2fb45..ef251cc3 100644 --- a/package/gluon-mesh-vpn-tunneldigger/files/lib/gluon/announce/nodeinfo.d/software/tunneldigger +++ b/package/gluon-mesh-vpn-tunneldigger/files/lib/gluon/announce/nodeinfo.d/software/tunneldigger @@ -1,8 +1,7 @@ -return { - local tunneldigger_enabled = uci:get_first('tunneldigger', 'broker', 'enabled') - if (tonumber(tunneldigger_enable) == 1) then - enabled = true - else - enabled = false - end -} +local tunneldigger_enabled = uci:get_first('tunneldigger', 'broker', 'enabled') + +if (tonumber(tunneldigger_enabled) == 1) then + return { enabled = true } +else + retirm { enabled = false } +end