<%+header%> <% local uci = require("luci.model.uci").cursor() local hosts = uci:get_list("dhcp", uci:get_first("dhcp","dnsmasq"), "ipset") local ips = uci:get_list("omr-bypass", "ips", "ip") local dpi = uci:get_list("omr-bypass", "dpi", "proto") local tmpfile = os.tmpname() local dpi_available_proto = luci.util.execi("cat /proc/net/xt_ndpi/proto | awk '{print $3}' | sort -u | head -n -1") local sys = require "luci.sys" local ifaces = sys.net:devices() local bypassif = uci:get("omr-bypass","defaults","ifname") or "" %> <% if stderr and #stderr > 0 then %>
<%=pcdata(stderr)%>
<% end %>

<%:SNMPd%>

<%:General%>
checked<% end %>>
network

<%:General%>

<%:Domain, IP or network%>
<%:Output interface%>

<%:Protocols%>

<%:Protocols%>
<%:Output interface%>
<% local allprt="""" local protos = {} for l in io.lines("/proc/net/xt_ndpi/proto") do local a,b,c,d = l:match('(%w+) (%w+)') if b ~= "2" and not string.match(b,"custom") then table.insert(protos,b) end end table.sort(protos) for _,b in ipairs(protos) do allprt=allprt .. ","" .. b .. """ end %>
<%+footer%>