From 68daff656b58ae007cc0b16a23bf4a4bacfa68b0 Mon Sep 17 00:00:00 2001 From: dlandon Date: Fri, 28 Oct 2022 14:33:33 -0500 Subject: [PATCH] Adjust the wget parameters to keep it from indefinitely hanging; set IPv4 as the preferred protocol. --- plugins/dynamix.plugin.manager/scripts/plugin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/dynamix.plugin.manager/scripts/plugin b/plugins/dynamix.plugin.manager/scripts/plugin index 4eceb9320..f9e36e2ea 100755 --- a/plugins/dynamix.plugin.manager/scripts/plugin +++ b/plugins/dynamix.plugin.manager/scripts/plugin @@ -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) {