mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-10-30 18:07:52 +00:00
ucentral-event: fix dynamic vlan for devices where the WAN port is not eth0
Fixes: WIFI-12372 Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
@@ -36,7 +36,7 @@ let pending_events = [];
|
||||
function config_load() {
|
||||
uci.load('event');
|
||||
config = uci.get_all('event');
|
||||
wan_ports = config.config?.wan_ports || [ 'eth0' ];
|
||||
wan_ports = config.config?.wan_port || [ 'eth0' ];
|
||||
|
||||
if (config.wifi?.filter == '*')
|
||||
config.wifi.filter = [ 'probe', 'auth', 'assoc', 'disassoc', 'deauth', 'local-deauth', 'inactive-deauth', 'key-mismatch', 'beacon-report', 'radar-detected' ];
|
||||
|
||||
Reference in New Issue
Block a user