check_site.lua 409 B

1234567891011121314
  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)
  10. need_boolean('fastd_mesh_vpn.enabled', false)