1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Fix adding network bypass

This commit is contained in:
Ycarus 2018-07-30 10:27:36 +02:00
parent 937e8d43ea
commit ce9432d93b

View file

@ -17,7 +17,7 @@ function bypass_add()
local ip_ipset = {}
for _, k in pairs(hosts) do
if k ~= "" then
if dt.ipaddr(k) then
if dt.ipmask(k) then
table.insert(ip_ipset, k)
else
domains_ipset = domains_ipset .. '/' .. k