From a33e33cb0b5efe92704e1fa5a559e788b3908eea Mon Sep 17 00:00:00 2001 From: gSpot Date: Mon, 1 Aug 2022 17:35:35 +0300 Subject: [PATCH] Fixed ruantiblock-mod-lua --- .../files/usr/libexec/ruantiblock/ruab_parser.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ruantiblock-mod-lua/files/usr/libexec/ruantiblock/ruab_parser.lua b/ruantiblock-mod-lua/files/usr/libexec/ruantiblock/ruab_parser.lua index d9be23b..aec476b 100755 --- a/ruantiblock-mod-lua/files/usr/libexec/ruantiblock/ruab_parser.lua +++ b/ruantiblock-mod-lua/files/usr/libexec/ruantiblock/ruab_parser.lua @@ -451,8 +451,7 @@ function BlackListParser:get_http_data(url) ret_val = nil print(string.format("Connection error! (%s) URL: %s", ret_code, url)) end - end - if not ret_val then + else local wget_sink = ltn12.sink.chain(self:chunk_buffer(), self:sink()) ret_val = ltn12.pump.all(ltn12.source.file(io.popen(self.WGET_CMD .. self.wget_user_agent .. ' "' .. url .. '"', 'r')), wget_sink) end