gluon-mesh-vpn-fastd: gluon-annouced: fix fastd status always being reported as enabled

This commit is contained in:
Matthias Schiffer 2015-12-08 22:47:32 +01:00
parent 3655a5b228
commit 5ecb8a7366
1 changed files with 1 additions and 1 deletions

View File

@ -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