diff options
author | zswdcx | 2021-08-28 20:40:05 +0800 |
---|---|---|
committer | zswdcx | 2021-08-28 20:40:05 +0800 |
commit | 52990460a25ad813b694bb3f23f3920f330fa8fd (patch) | |
tree | 73dacf1ab10ba8a0cace7fedb7741bd32857b38b /vxray-rules-dat-updater | |
parent | f9851eca0ca1c75346b756ccf40e89a43de37420 (diff) | |
download | aur-52990460a25ad813b694bb3f23f3920f330fa8fd.tar.gz |
add cfcdn and fix github
Diffstat (limited to 'vxray-rules-dat-updater')
-rwxr-xr-x | vxray-rules-dat-updater | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/vxray-rules-dat-updater b/vxray-rules-dat-updater index ccbca68a553..be8427eaf1d 100755 --- a/vxray-rules-dat-updater +++ b/vxray-rules-dat-updater @@ -3,8 +3,9 @@ set -e FastGit="https://hub.fastgit.org/Loyalsoldier/v2ray-rules-dat/releases/latest/" -GitHub="https://github.com/Loyalsoldier/v2ray-rules-dat/raw/releases" +GitHub="https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download" JsDelivr="https://cdn.jsdelivr.net/gh/Loyalsoldier/v2ray-rules-dat@release/" +CfCDN="https://cfgit.cern.ga/Loyalsoldier/v2ray-rules-dat/releases/latest/download" download_files() { echo "Fetching geoip.dat" @@ -27,6 +28,8 @@ case "${1}" in "jsdelivr" | "js") download_files $JsDelivr ;; +"cfcdn" | "cf" + download_files $CfCDN *) download_files $GitHub ;; |