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

Merge branch 'master' of github.com:v2fly/v2ray-core

This commit is contained in:
Kslr 2020-06-20 03:10:37 +08:00
commit 0b612c43ec
No known key found for this signature in database
GPG Key ID: 0AF5F66FA1E887CE

View File

@ -3,13 +3,11 @@
pushd "$GOPATH/src/v2ray.com/core/" || return pushd "$GOPATH/src/v2ray.com/core/" || return
# Update geoip.dat # 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/raw/release/geoip.dat"
curl -L -o release/config/geoip.dat "https://github.com/v2ray/geoip/releases/download/${GEOIP_TAG}/geoip.dat"
sleep 1 sleep 1
# Update geosite.dat # 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/raw/release/dlc.dat"
curl -L -o release/config/geosite.dat "https://github.com/v2ray/domain-list-community/releases/download/${GEOSITE_TAG}/dlc.dat"
sleep 1 sleep 1
popd || return popd || return