Skip to content
Snippets Groups Projects
Unverified Commit dda1b2a1 authored by Jan-Tarek Butt's avatar Jan-Tarek Butt Committed by Matthias Schiffer
Browse files

gluon-client-bridge: check AP SSID length to be in range of 1-32 characters

parent 9a902484
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment