gluon-mesh-vpn-tunneldigger: ignore default config when checking for legacy configs
This commit is contained in:
parent
d3d1059149
commit
aa17e3e86e
@ -8,7 +8,9 @@ local uci = require('simple-uci').cursor()
|
||||
|
||||
local enabled = uci:get('tunneldigger', 'mesh_vpn', 'enabled')
|
||||
if enabled == nil then
|
||||
enabled = uci:get_first('tunneldigger', 'broker', 'enabled')
|
||||
if uci:get_first('tunneldigger', 'broker', 'interface') == "mesh-vpn" then
|
||||
enabled = uci:get_first('tunneldigger', 'broker', 'enabled')
|
||||
end
|
||||
end
|
||||
if enabled == nil then
|
||||
enabled = site.mesh_vpn.enabled or false
|
||||
|
Loading…
Reference in New Issue
Block a user