diff --git a/gluon-mesh-vpn-tunneldigger/files/lib/gluon/upgrade/400-mesh-vpn-tunneldigger b/gluon-mesh-vpn-tunneldigger/files/lib/gluon/upgrade/400-mesh-vpn-tunneldigger index 6e930be..462562d 100755 --- a/gluon-mesh-vpn-tunneldigger/files/lib/gluon/upgrade/400-mesh-vpn-tunneldigger +++ b/gluon-mesh-vpn-tunneldigger/files/lib/gluon/upgrade/400-mesh-vpn-tunneldigger @@ -11,7 +11,7 @@ local lutil = require 'luci.util' users.add_group('gluon-tunneldigger', 900) local enabled = uci:get_first('tunneldigger', 'broker', 'enabled') -if not enabled then +if (tonumber(enabled) == 0) then enabled = site.tunneldigger_mesh_vpn.enabled and 1 or 0 end