kingyan / Actions

每日自动更新fancyss规则

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

使用GitHub Actions每日自动更新fancyss规则

Update Fancyss Rules


Actions会在每日UTC+8 3:45时自动执行并更新规则,推荐在插件中设置每天4:00定时更新


食用方法:

  • 进入路由器SSH,运行以下命令会自动将ss_rule_update脚本中的url_main参数指向我的仓库(二选一即可):
  • sed -i 's/^\turl_main.*/\turl_main="https:\/\/raw.githubusercontent.com\/qxzg\/Actions\/master\/fancyss_rules"/g' /koolshare/scripts/ss_rule_update.sh推荐,直连GitHub仓库)
  • sed -i 's/^\turl_main.*/\turl_main="https:\/\/cdn.jsdelivr.net\/gh\/qxzg\/Actions@master\/fancyss_rules"/g' /koolshare/scripts/ss_rule_update.sh (仅当更新规则时显示"没有检测到在线版本,可能是访问github有问题"时推荐,由于jsDelivr CDN存在最长24小时的缓存,规则更新会有延迟)
  • x86版本fancyss插件请自行找到更新规则的脚本并替换url_main参数

每次fancyss插件更新后都需要*重新运行一次*更新ss_rule_update脚本的命令


注:由于源更新较慢,大陆白名单已改用ispip.clang.cn作为规则源,而非fancyss原版规则中的https://raw.githubusercontent.com/firehol/blocklist-ipsets/master/ipip_country/ipip_country_cn.netset

About

每日自动更新fancyss规则

License:GNU General Public License v3.0


Languages

Language:Shell 77.8%Language:Python 22.2%