check_site.lua 363 B

12345678910111213
  1. need_string_array 'fastd_mesh_vpn.methods'
  2. need_number 'fastd_mesh_vpn.mtu'
  3. need_number 'fastd_mesh_vpn.backbone.limit'
  4. local function check_peer(k, _)
  5. local prefix = string.format('fastd_mesh_vpn.backbone.peers[%q].', k)
  6. need_string(prefix .. 'key')
  7. need_string_array(prefix .. 'remotes')
  8. end
  9. need_table('fastd_mesh_vpn.backbone.peers', check_peer)