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:
John Crispin
2023-04-10 14:24:19 +02:00
parent 52c39cd3bf
commit 690d7655a0

View File

@@ -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' ];