q**ay 高级路由更新脚本

  • 内容
  • 评论
  • 相关
#!/usr/bin/env bash

set -e
export http_proxy=127.0.0.1:8889
export https_proxy=127.0.0.1:8889
v2ray_folder="/usr/local/Cellar/v2ray-core/4.39.2/share/v2ray-core/"

GREEN='\033[0;32m'
NC='\033[0m'

GEOIP_URL="https://github.com/Loyalsoldier/v2ray-rules-dat/raw/release/geoip.dat"
GEOSITE_URL="https://github.com/Loyalsoldier/v2ray-rules-dat/raw/release/geosite.dat"

echo -e "${GREEN}>>> change directory...${NC}"
cd $v2ray_folder

echo -e "${GREEN}>>> delete old dat files...${NC}"
rm -f geoip.dat geosite.dat

echo -e "${GREEN}>>> downloading geoip.dat files...${NC}"
curl -L -O $GEOIP_URL

echo -e "${GREEN}>>> downloading geosite.dat files...${NC}"
curl -L -O $GEOSITE_URL

echo -e "${GREEN}完成啦!${NC}"

评论

0条评论

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注