From b3b6304a120464201bfd6b818dc62eb3dd464d7f Mon Sep 17 00:00:00 2001 From: Loyalsoldier Date: Sat, 1 Feb 2020 18:31:27 +0800 Subject: [PATCH] Fix with accept-encoding header & compressed option --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 80ee319..2447ab3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -66,7 +66,7 @@ jobs: - name: Automatically generate ookla-speedtest sub-list from source run: | - curl -L -o servers-source.xml "https://c.speedtest.net/speedtest-servers-static.php" + curl -L -o servers-source.xml "https://c.speedtest.net/speedtest-servers-static.php" -H "Accept-Encoding: gzip" --compressed perl -ne '/host="(.+):[0-9]+"/ && print "full:$1\n"' servers-source.xml | perl -ne 'print if not /^(full:([0-9]{1,3}\.){3}[0-9]{1,3})$/' | perl -ne 'print lc' | sort --ignore-case -u >> $GOPATH/src/$GEOSITE_REPO/data/ookla-speedtest - name: Get and add direct domains into temp-direct.txt file