1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-22 01:57:12 -05:00

Update rules dat file URL

Update rules dat file URL to GitHub default latest downloadable assets URL
This commit is contained in:
Loyalsoldier 2020-01-05 12:06:20 +08:00 committed by kslr
parent 556f4bf743
commit 4a6ae20474

View File

@ -60,13 +60,11 @@ popd
pushd $GOPATH/src/v2ray.com/core/
# Update geoip.dat
GEOIP_TAG=$(curl --silent "https://api.github.com/repos/v2ray/geoip/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/')
curl -L -o release/config/geoip.dat "https://github.com/v2ray/geoip/releases/download/${GEOIP_TAG}/geoip.dat"
curl -L -o release/config/geoip.dat "https://github.com/v2ray/geoip/releases/latest/download/geoip.dat"
sleep 1
# Update geosite.dat
GEOSITE_TAG=$(curl --silent "https://api.github.com/repos/v2ray/domain-list-community/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/')
curl -L -o release/config/geosite.dat "https://github.com/v2ray/domain-list-community/releases/download/${GEOSITE_TAG}/dlc.dat"
curl -L -o release/config/geosite.dat "https://github.com/v2ray/domain-list-community/releases/latest/download/dlc.dat"
sleep 1
popd