mirror of
https://github.com/freifunk-gluon/packages.git
synced 2024-06-19 23:28:32 +02:00
31976c242d
This patch allows fastd's enabled flag's default value to be set from site.conf.
15 lines
409 B
Lua
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)
|