check_site: dns.servers is mandatory if using dns

This commit is contained in:
Ralf Jung 2017-11-27 10:16:23 +01:00
parent 0229b522e2
commit e3f0e1a04d

View File

@ -42,7 +42,7 @@ end
need_boolean('poe_passthrough', false)
if need_table('dns', nil, false) then
need_number('dns.cacheentries', false)
need_string_array_match('dns.servers', '^[%x:]+$', false)
need_string_array_match('dns.servers', '^[%x:]+$', true)
end
if need_table('next_node', nil, false) then