1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-14 19:41:51 +00:00

Display any interface with multipath on in wizard

This commit is contained in:
Ycarus 2018-08-17 22:03:17 +02:00
parent d5b2c79d6b
commit 606a74124e

View file

@ -129,10 +129,10 @@
<legend><%:Interfaces settings%></legend>
<div class="cbi-section-descr"><%:You must disable DHCP on your modems and set IP in different networks.%></div>
<%
for _, iface in ipairs(ifaces) do
--if not (iface == "lo" or iface:match("^tun.*")) then
for _, iface in ipairs(net:get_networks()) do
local ifname = iface:name()
if (ifname:match("^wan.*")) then
local multipath = uci:get("network",ifname,"multipath")
if multipath ~= "off" then
%>
<div class="cbi-section-remove right">
<input type="submit" name="delete.<%=ifname%>" value="<%:Delete%>" class="cbi-button" />