diff --git a/luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm b/luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm index 4a3421d3b..fe5c85e4a 100644 --- a/luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm +++ b/luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm @@ -424,6 +424,7 @@ local statuslogo = ucic:get("openmptcprouter","settings","statuslogo") or "openm ip6addr=replaceLastNChars(ip6addr,"x",6); } var ifname = mArray.wans[i].ifname; + var iftype = mArray.wans[i].iftype; var whois = mArray.wans[i].whois; var whois6 = mArray.wans[i].whois6; var signal = mArray.wans[i].signal; @@ -596,6 +597,11 @@ local statuslogo = ucic:get("openmptcprouter","settings","statuslogo") or "openm statusMessage += '<%:Network interface duplicated%>' + '
'; statusMessageClass = "error"; } + if(iftype == "bridge") + { + statusMessage += '<%:Bridge can't have multipath enabled%>' + '
'; + statusMessageClass = "error"; + } if(duplicatemac) { statusMessage += '<%:Network interface MAC address duplicated%>' + '
'; diff --git a/luci-app-openmptcprouter/root/usr/libexec/rpcd/openmptcprouter b/luci-app-openmptcprouter/root/usr/libexec/rpcd/openmptcprouter index 2a31616dc..4a9a7a21f 100755 --- a/luci-app-openmptcprouter/root/usr/libexec/rpcd/openmptcprouter +++ b/luci-app-openmptcprouter/root/usr/libexec/rpcd/openmptcprouter @@ -1119,6 +1119,7 @@ function interfaces_status() local proto = section["proto"] or "" local ipv6 = section["ipv6"] or "0" local mac = section ["macaddr"] or "" + local itype = section ["type"] or "" --if not ipaddr or not gateway then return end -- Don't show if0 in the overview @@ -1479,6 +1480,7 @@ function interfaces_status() rx = rx, tx = tx, zonewan = zonewan, + iftype = itype, } if ifname ~= nil and ifname:match("^tun.*") then table.insert(mArray.tunnels, data);