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

20s timeout for package update

This commit is contained in:
Ycarus 2019-02-11 19:45:46 +01:00
parent 653ce02b1f
commit 7395eed8eb

View file

@ -87,9 +87,9 @@ end
function httpget(url, stream, target)
if not target then
local source = stream and io.popen or luci.util.exec
return source("wget -4 -qO- %s" % luci.util.shellquote(url))
return source("wget -4 -T 20 -qO- %s" % luci.util.shellquote(url))
else
return os.execute("wget -4 -qO %s %s" %
return os.execute("wget -4 -T 20 -qO %s %s" %
{luci.util.shellquote(target), luci.util.shellquote(url)})
end
end