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:
parent
653ce02b1f
commit
7395eed8eb
1 changed files with 2 additions and 2 deletions
|
@ -87,9 +87,9 @@ end
|
||||||
function httpget(url, stream, target)
|
function httpget(url, stream, target)
|
||||||
if not target then
|
if not target then
|
||||||
local source = stream and io.popen or luci.util.exec
|
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
|
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)})
|
{luci.util.shellquote(target), luci.util.shellquote(url)})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue