gluon/package/gluon-mesh-vpn-core/check_site.lua
lemoer 50812b162c
treewide: forbid use of selected site variables in domain specific or site configs
[Matthias schiffer: rebase, add a few more restrictions]
2018-01-19 04:05:27 +01:00

9 lines
345 B
Lua

need_boolean(in_site('mesh_vpn.enabled'), false)
need_number('mesh_vpn.mtu')
if need_table(in_site('mesh_vpn.bandwidth_limit'), nil, false) then
need_boolean(in_site('mesh_vpn.bandwidth_limit.enabled'), false)
need_number(in_site('mesh_vpn.bandwidth_limit.ingress'), false)
need_number(in_site('mesh_vpn.bandwidth_limit.egress'), false)
end