1
0
mirror of https://github.com/freifunk-gluon/packages.git synced 2024-06-19 23:28:32 +02:00
gluon-packages/gluon/gluon-mesh-vpn-fastd/check_site.lua
Nils Schneider 31976c242d mesh-vpn-fastd: enable from site.conf
This patch allows fastd's enabled flag's default value to be set from
site.conf.
2014-09-03 20:37:17 +02:00

15 lines
409 B
Lua

need_string_array 'fastd_mesh_vpn.methods'
need_number 'fastd_mesh_vpn.mtu'
need_number 'fastd_mesh_vpn.backbone.limit'
local function check_peer(k, _)
local prefix = string.format('fastd_mesh_vpn.backbone.peers[%q].', k)
need_string(prefix .. 'key')
need_string_array(prefix .. 'remotes')
end
need_table('fastd_mesh_vpn.backbone.peers', check_peer)
need_boolean('fastd_mesh_vpn.enabled', false)