mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-15 03:51:51 +00:00
合并Ysurac/develop的拉取请求#66
sync
This commit is contained in:
commit
34631ed42b
1 changed files with 10 additions and 2 deletions
|
@ -22,6 +22,9 @@
|
|||
return true
|
||||
end
|
||||
function splitstring(inputstr, sep)
|
||||
if inputstr == nil then
|
||||
return ""
|
||||
end
|
||||
if sep == nil then
|
||||
sep = "%s"
|
||||
end
|
||||
|
@ -558,8 +561,13 @@
|
|||
<%
|
||||
iffind=0
|
||||
uciifname=uci:get("network",ifname,"ifname")
|
||||
realifname=splitstring(uciifname,'.')[1] or ""
|
||||
vlan=splitstring(uciifname,'.')[2] or ""
|
||||
if uciifname:match("/") then
|
||||
realifname=uciifname
|
||||
vlan=""
|
||||
else
|
||||
realifname=splitstring(uciifname,'.')[1] or ""
|
||||
vlan=splitstring(uciifname,'.')[2] or ""
|
||||
end
|
||||
for _, ifacea in ipairs(ifaces) do
|
||||
if not (ifacea == "lo" or ifacea == "6in4-omr6in4" or ifacea == "mlvpn0" or ifacea:match("^ifb.*") or ifacea:match("^sit.*") or ifacea:match("^gre.*") or ifacea:match("^ip6.*") or ifacea:match("^teql.*") or ifacea:match("^erspan.*") or ifacea:match("^tun.*")) and device_notvirtual(ifacea) then
|
||||
%>
|
||||
|
|
Loading…
Reference in a new issue