<%+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") %> <% if stderr and #stderr > 0 then %>
<%=pcdata(stderr)%>
<% end %>

<%:Bypass%>

<%:Set domains name, ips or networks you want to bypass.%>
<% local j = 1 for _ , host in pairs(hosts) do j = j+1 for hst in string.gmatch(host,"([^/]*)/") do if hst ~= "" then %>
<% end end end for _ , ip in pairs(ips) do j = j+1 %>
<% end if j == 1 then %>
<% end %>
<%+footer%>