Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[咨询] 关于使用 Meta/Mihomo 内核时 geosite 自动更新的问题 #651

Closed
3 tasks done
chshouyu opened this issue Jun 1, 2024 · 10 comments
Closed
3 tasks done

Comments

@chshouyu
Copy link

chshouyu commented Jun 1, 2024

Verify steps

  • 我已经在 Issue Tracker 中找过我要提出的问题 I have searched on the issue tracker for a related issue.
  • 我已经使用公测版本测试过,问题依旧存在 I have tested using the test mod, and the issue still exists.
  • 我已经仔细看过 常见问题 并无法自行解决问题

Description

image

官方文档有配置自动更新的选项,但是在 ShellCrash 安装时,推荐的定时任务里没有关于何时自动更新 geosite 的任务

而且我查看了一下 /tmp/ShellCrash/config.yaml 里的内容,发现也没有相关的配置

目前的自动任务有:

image

想问一下:

  1. ShellCrash 有没有接管自动更新 GEO 相关的配置?
  2. 我需不需要自己添加一个 10 自动更新数据库文件 的任务?
  3. 假如需要添加一个 10 自动更新数据库文件 的任务,还需不需要添加一个 3 重启clash服务 任务以使新的数据库文件生效?

感谢作者带来这么棒的项目😁

@juewuy
Copy link
Owner

juewuy commented Jun 1, 2024

没有
需要
需要

@chshouyu
Copy link
Author

chshouyu commented Jun 1, 2024

感谢解答~
如果我将规则换成 RULE-SET 形式,它自带了一个 interval,是不是就不需要操心这么多了?

@juewuy
Copy link
Owner

juewuy commented Jun 1, 2024

@chshouyu meta应该支持内核级更新geo数据库

@chshouyu
Copy link
Author

chshouyu commented Jun 1, 2024

那 ShellCrash 在启动时自动下载的 GeoSite.dat 是应用在哪方面了呢?

@juewuy
Copy link
Owner

juewuy commented Jun 1, 2024

@chshouyu 内核自动更新需要额外设置配置文件

@chshouyu
Copy link
Author

chshouyu commented Jun 1, 2024

我试过了,参考这里 metacubex,我在自己的 config.yaml 里加了一段:

geodata-mode: true
geodata-loader: standard
geo-auto-update: true
geo-update-interval: 24
geox-url:
  geoip: 'https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@release/geoip.dat'
  geosite: 'https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@release/geosite.dat'
  mmdb: 'https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@release/country.mmdb'
  asn: 'https://github.com/xishang0128/geoip/releases/download/latest/GeoLite2-ASN.mmdb'

上传到 /tmp/,加载重启 ShellCrash 之后,再查看 /tmp/ShellCrash/config.yaml,发现这一段消失了

@juewuy
Copy link
Owner

juewuy commented Jun 1, 2024

@chshouyu 6-6

@chshouyu
Copy link
Author

chshouyu commented Jun 1, 2024

好的,明白了,我去试试,感谢~

@chshouyu
Copy link
Author

chshouyu commented Jun 3, 2024

除了 GeoSite.dat 以外,cn_ip.txt、cn_ipv6.txt、geoip-cn.srs、geosite-cn.srs 等更新后是不是都要重启 clash 才能生效?或者说,只要依赖了数据库资源,3 重启clash服务 这个任务得必须配置对吗?

@juewuy
Copy link
Owner

juewuy commented Jun 3, 2024

@chshouyu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants