diff options
-rw-r--r-- | libs/web/luasrc/view/cbi/network_ifacelist.htm | 2 | ||||
-rw-r--r-- | libs/web/luasrc/view/cbi/network_netlist.htm | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libs/web/luasrc/view/cbi/network_ifacelist.htm b/libs/web/luasrc/view/cbi/network_ifacelist.htm index 5553da6ccf..c4d392e9ed 100644 --- a/libs/web/luasrc/view/cbi/network_ifacelist.htm +++ b/libs/web/luasrc/view/cbi/network_ifacelist.htm @@ -40,7 +40,7 @@ $Id$ <ul style="margin:0; list-style-type:none"> <% for _, iface in ipairs(ifaces) do local link = iface:adminlink() - if not self.nobridges or not iface:is_bridge() then %> + if (not self.nobridges or not iface:is_bridge()) and iface:name() ~= self.exclude then %> <li> <input class="cbi-input-<%=self.widget or "radio"%>" onclick="cbi_d_update(this.id)" onchange="cbi_d_update(this.id)"<%= attr("type", self.widget or "radio") .. diff --git a/libs/web/luasrc/view/cbi/network_netlist.htm b/libs/web/luasrc/view/cbi/network_netlist.htm index 2d464cc878..46da88fd1a 100644 --- a/libs/web/luasrc/view/cbi/network_netlist.htm +++ b/libs/web/luasrc/view/cbi/network_netlist.htm @@ -33,7 +33,7 @@ $Id$ <ul style="margin:0; list-style-type:none; text-align:left"> <% for _, net in ipairs(networks) do - if net:name() ~= "loopback" then %> + if net:name() ~= "loopback" and net:name() ~= self.exclude then %> <li style="padding:0.25em 0"> <input class="cbi-input-radio" onclick="cbi_d_update(this.id)" onchange="cbi_d_update(this.id)"<%= attr("type", self.widget or "radio") .. |