ruantiblock-mod-lua, ruantiblock-mod-py: fixed rublacklist

This commit is contained in:
gSpot
2023-08-31 18:59:10 +03:00
parent a933fc36f9
commit 91749b6ace
5 changed files with 6 additions and 6 deletions
@@ -535,14 +535,14 @@ end
local Rbl = Class(BlackListParser, {
url = Config.RBL_ALL_URL,
records_separator = '%{"authority": ',
records_separator = '%{"appearDate": ',
ips_separator = ", ",
})
function Rbl:sink()
return function(chunk)
if chunk and chunk ~= "" then
for fqdn_str, ip_str in chunk:gmatch('"domains": %["?(.-)"?%].-"ips": %[([a-f0-9/.:", ]*)%].-' .. self.records_separator .. "?") do
for fqdn_str, ip_str in chunk:gmatch('"domains": %["?(.-)"?%].-"ips": %[([a-f0-9/.:", ]*)%].-') do
fqdn_sink_func(self, ip_str, fqdn_str)
end
end