mirror of
https://github.com/Loyalsoldier/v2ray-rules-dat.git
synced 2024-11-10 02:55:34 +08:00
Automatically generate ookla-speedtest sub-list from source
This commit is contained in:
parent
749e420c3f
commit
f8bb1017c6
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
@ -63,6 +63,14 @@ jobs:
|
||||
run: |
|
||||
go get -u -v -insecure $GEOSITE_REPO
|
||||
|
||||
- name: Automatically generate ookla-speedtest sub-list from source
|
||||
run: |
|
||||
curl -L -o servers-source.xml "https://c.speedtest.net/speedtest-servers-static.php"
|
||||
cat servers-source.xml | sed -nEe 's/.+host="(.+):[0-9]+".+/\L\1/p' | sort -u > hosts-with-ip.txt
|
||||
sed -E '/^([0-9]{1,3}\.){3}[0-9]{1,3}$/d' hosts-with-ip.txt > hosts-without-ip.txt
|
||||
cat hosts-without-ip.txt | awk '{printf "full:%s\n", $0}' > $GOPATH/src/$GEOSITE_REPO/data/ookla-speedtest
|
||||
echo "include:ookla-speedtest-ads" >> $GOPATH/src/$GEOSITE_REPO/data/ookla-speedtest
|
||||
|
||||
- name: Get and add direct domains into temp-direct.txt file
|
||||
run: |
|
||||
curl -sSL $CHINA_DOMAINS_URL | awk -F '/' '{print $2}' > temp-direct.txt
|
||||
|
Loading…
Reference in New Issue
Block a user