Development
This commit is contained in:
parent
a4652866c3
commit
27eaea3d73
19 changed files with 602 additions and 427 deletions
|
|
@ -33,7 +33,7 @@ def add_vlan():
|
|||
radius_default = 'radius_default' in request.form
|
||||
mdns_reflection = 'mdns_reflection' in request.form
|
||||
use_blocklists = sanitize.filterlist(request.form.getlist('use_blocklists'),
|
||||
{b.get('name') for b in load_core().get('blocklists', [])})
|
||||
{b.get('name') for b in load_core().get('dns_blocking', {}).get('blocklists', [])})
|
||||
|
||||
if not name:
|
||||
flash('Name is required.', 'error')
|
||||
|
|
@ -104,7 +104,7 @@ def edit_vlan():
|
|||
radius_default = 'radius_default' in request.form
|
||||
mdns_reflection = 'mdns_reflection' in request.form
|
||||
use_blocklists = sanitize.filterlist(request.form.getlist('use_blocklists'),
|
||||
{b.get('name') for b in load_core().get('blocklists', [])})
|
||||
{b.get('name') for b in load_core().get('dns_blocking', {}).get('blocklists', [])})
|
||||
|
||||
# subnet_mask is only present when the column is visible (not all edit paths send it).
|
||||
# Validate if submitted; fall back to the stored value otherwise.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue