From 2100e4549533d2a1d5ffd7913a02060764fb6579 Mon Sep 17 00:00:00 2001 From: Tim Wilkinson Date: Wed, 6 Dec 2023 11:46:38 -0800 Subject: [PATCH] Fix missing vlan tag in advance networking (#993) * Fix missing vlans tags when vlan saved before ports selected --- files/www/cgi-bin/advancednetwork | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/files/www/cgi-bin/advancednetwork b/files/www/cgi-bin/advancednetwork index 19296ccf..12162f31 100755 --- a/files/www/cgi-bin/advancednetwork +++ b/files/www/cgi-bin/advancednetwork @@ -100,6 +100,9 @@ function read_user_config(network) m = line:match("option%s+vlan%s+'(%d+)'") if m then config.vlan = tonumber(m) + if config.vlan == 2 or config.vlan >= 4 then + config.tagged = true + end end m = line:match("list%s+ports%s+'(%S+):u'") if m then @@ -482,7 +485,6 @@ html.print([[ } }); function port_change(input, network, port, checked) { - console.log(network, port, checked) const config = configs.find(c => c.name == network); if (!config.tagged && checked) { configs.forEach(config => {