From e19f1876165c6d5af42ce0c9ef59a3b5d9c5074e Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Wed, 21 Dec 2016 16:09:29 +0000 Subject: [PATCH] add -4 to wget on torrent for stats or otherwise it uses ipv6 and fails due to an access error --- roles/torrent/files/pull_opentracker_data.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/torrent/files/pull_opentracker_data.sh b/roles/torrent/files/pull_opentracker_data.sh index b6c1d66b03..1371237b0c 100755 --- a/roles/torrent/files/pull_opentracker_data.sh +++ b/roles/torrent/files/pull_opentracker_data.sh @@ -6,7 +6,7 @@ base=/srv/web/stats/raw baseurl='http://torrent.fedoraproject.org:6969/stats?mode=' date=`date +%Y-%m-%d` hour=`date +%H` -wgetcmd="wget --timeout=20 -q" +wgetcmd="wget --timeout=20 -q -4" #per-torrent stats src="${baseurl}tpbs&format=txt" dest=$base/torrent/$date