gluon-mesh-vpn-fastd: gluon-annouced: fix fastd status always being reported as enabled
This commit is contained in:
parent
3655a5b228
commit
5ecb8a7366
@ -1,5 +1,5 @@
|
||||
local ret = {
|
||||
enabled = uci:get('fastd', 'mesh_vpn', 'enabled') ~= 0,
|
||||
enabled = uci:get('fastd', 'mesh_vpn') and (uci:get('fastd', 'mesh_vpn', 'enabled') == nil or uci:get_bool('fastd', 'mesh_vpn', 'enabled')),
|
||||
version = util.readline(io.popen('exec fastd -v')):match('^[^%s]+%s+(.+)'),
|
||||
}
|
||||
return ret
|
||||
|
Loading…
Reference in New Issue
Block a user