mirror of
https://github.com/gSpotx2f/ruantiblock_openwrt.git
synced 2026-05-14 22:50:58 +00:00
Fixed ruantiblock-mod-lua
This commit is contained in:
@@ -451,8 +451,7 @@ function BlackListParser:get_http_data(url)
|
|||||||
ret_val = nil
|
ret_val = nil
|
||||||
print(string.format("Connection error! (%s) URL: %s", ret_code, url))
|
print(string.format("Connection error! (%s) URL: %s", ret_code, url))
|
||||||
end
|
end
|
||||||
end
|
else
|
||||||
if not ret_val then
|
|
||||||
local wget_sink = ltn12.sink.chain(self:chunk_buffer(), self:sink())
|
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)
|
ret_val = ltn12.pump.all(ltn12.source.file(io.popen(self.WGET_CMD .. self.wget_user_agent .. ' "' .. url .. '"', 'r')), wget_sink)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user