gluon-client-bridge: check ap SSID length to be in range of 1-32 chracters

This commit is contained in:
Jan-Tarek Butt 2018-03-17 15:14:14 +01:00
parent 455009a606
commit 901b455db1

View File

@ -9,7 +9,7 @@ need_string_match(in_domain({'next_node', 'ip6'}), '^[%x:]+$', false)
for _, config in ipairs({'wifi24', 'wifi5'}) do
if need_table({config, 'ap'}, nil, false) then
need_string(in_domain({config, 'ap', 'ssid'}))
need_string_match(in_domain({config, 'ap', 'ssid'}), '^.' .. ('.?'):rep(31) .. '$')
need_boolean({config, 'ap', 'disabled'}, false)
end
end