Skip to content
Snippets Groups Projects
Select Git revision
  • 00c47f2912604c75abd8cc3a4663ca12d471ed0e
  • v2018.2.x default
  • experimental
  • master
  • v2021.1.2-ffs
  • v2021.1.1-ffs
  • nrb/gluon-master-cpe510
  • v2021.1-ffs
  • v2020.2.3-ffs
  • nrbffs/fastd-remove-delay
  • v2020.2.2-ffs
  • v2020.2.1-ffs
  • v2020.2-ffs
  • v2020.2.x
  • v2020.1.3-ffs
  • v2020.1.1-ffs
  • v2020.1-ffs
  • v2019.1.2-ffs
  • v2019.1.1-ffs
  • nrb/test-radv-filter
  • v2019.1-ffs
  • nrbffs/netgear-ex6120
  • v2021.1.2-ffs0.2
  • v2021.1.2-ffs0.1
  • v2021.1.1-ffs0.4
  • v2021.1.1-ffs0.3
  • v2021.1.1-ffs0.2
  • v2021.1.1-ffs0.1
  • v2021.1-ffs0.1
  • v2020.2.3-ffs0.3
  • v2020.2.3-ffs0.2
  • v2020.2.3-ffs0.1
  • v2020.2.2-ffs0.1
  • v2020.2.1-ffs0.1
  • v2020.2-ffs0.1
  • v2020.2
  • v2020.2.x-ffs0.1
  • v2020.1.3-ffs0.1
  • v2020.1.1-ffs0.1
  • v2020.1-ffs0.1
  • v2019.1.2-ffs0.1
  • v2019.1.1-ffs0.1
42 results

check_site.lua

Blame
  • Forked from firmware / FFS Gluon
    4322 commits behind the upstream repository.
    check_site.lua 707 B
    need_string_array('fastd_mesh_vpn.methods')
    need_number('fastd_mesh_vpn.mtu')
    need_boolean('fastd_mesh_vpn.enabled', false)
    
    
    local function check_peer(prefix)
      return function(k, _)
        local table = string.format('%s[%q].', prefix, k)
    
        need_string(table .. 'key')
        need_string_array(table .. 'remotes')
      end
    end
    
    local function check_group(prefix)
      return function(k, _)
        local table = string.format('%s[%q].', prefix, k)
    
        need_number(table .. 'limit', false)
        need_table(table .. 'peers', check_peer(table .. 'peers'), false)
        need_table(table .. 'groups', check_group(table .. 'groups'), false)
      end
    end
    
    need_table('fastd_mesh_vpn.groups', check_group('fastd_mesh_vpn.groups'))