diff options
Diffstat (limited to 'vxray-rules-dat-updater')
-rwxr-xr-x | vxray-rules-dat-updater | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/vxray-rules-dat-updater b/vxray-rules-dat-updater index 6a245de27f91..3ba6736d4550 100755 --- a/vxray-rules-dat-updater +++ b/vxray-rules-dat-updater @@ -9,9 +9,15 @@ JsDelivr="https://cdn.jsdelivr.net/gh/Loyalsoldier/v2ray-rules-dat@release/" download_files() { echo "Fetching geoip.dat" curl -LO "${1}/geoip.dat" + curl -LO "${1}/geoip.dat.sha256sum" + sha256sum --check "geoip.dat.sha256sum" echo "Fetching geosite.dat" curl -LO "${1}/geosite.dat" + curl -LO "${1}/geosite.dat.sha256sum" + sha256sum --check "geosite.dat.sha256sum" + + rm -v "geosite.dat.sha256sum" "geoip.dat.sha256sum" } case "${1}" in |