mirror of
https://github.com/unraid/webgui.git
synced 2026-01-14 05:30:07 -06:00
Adjust the wget parameters to keep it from indefinitely hanging; set IPv4 as the preferred protocol.
This commit is contained in:
@@ -234,7 +234,7 @@ function download($url, $name, &$error, $write=true) {
|
||||
if ($url) {
|
||||
$plg = basename($url);
|
||||
$plg = str_replace('"', '', $plg);
|
||||
if ($file = popen("wget --compression=auto --no-cache --progress=dot --retry-connrefused --timeout=30 --tries=5 --waitretry=5 -O $name $url 2>&1", 'r')) {
|
||||
if ($file = popen("wget --compression=auto --no-cache --progress=dot --retry-connrefused --prefer-family=IPv4 --timeout=5 --tries=3 --waitretry=3 -O $name $url 2>&1", 'r')) {
|
||||
if ($write) write("plugin: downloading: $plg ...\r");
|
||||
$level = -1;
|
||||
while (($line = fgets($file)) !== false) {
|
||||
|
||||
Reference in New Issue
Block a user