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

现在clash内核能订阅地址吗? #13

Open
Konseru opened this issue Apr 15, 2023 · 5 comments
Open

现在clash内核能订阅地址吗? #13

Konseru opened this issue Apr 15, 2023 · 5 comments

Comments

@Konseru
Copy link

Konseru commented Apr 15, 2023

现在clash内核能订阅地址吗?如果可以该怎么配置文件?

@taamarin
Copy link
Owner

现在clash内核能订阅地址吗?如果可以该怎么配置文件?

# Set update interval using cron, for more information: https://crontab.guru/
crontab_sec='false'
update_interval="0 12 */3 * *" # updates will run at 12 noon every three days.
# Update sub&geo
# Type "su -c /data/adb/box/scripts/box.tool subgeo" to update
auto_update_geox="true"
# Only update clash subscription URL
auto_update_subscription="false"
subscription_url=""

@powerAn2020
Copy link
Contributor

现在clash内核能订阅地址吗?如果可以该怎么配置文件?

# Set update interval using cron, for more information: https://crontab.guru/
crontab_sec='false'
update_interval="0 12 */3 * *" # updates will run at 12 noon every three days.
# Update sub&geo
# Type "su -c /data/adb/box/scripts/box.tool subgeo" to update
auto_update_geox="true"
# Only update clash subscription URL
auto_update_subscription="false"
subscription_url=""

看了下代码,这个订阅是简单粗暴的直接把下载的文件覆盖掉/data/adb/box/clash/config.yaml,我感觉应该是提取订阅文件中的节点信息替换/data/adb/box/clash/provide/domestic.yml吧,是我少看了哪块代码吗,求告知。🤣

@rockxsj
Copy link
Contributor

rockxsj commented May 17, 2023

不要用这个配置项,可以直接在clash的config.yaml里面配置,参考如下:

proxy-groups:
  - { name: 'JICHANG', type: load-balance, use: ["ONE"] }
  - { name: 'SELF', type: select, use: ["VPS"] }
  - { name: 'block', type: select, proxies: ["REJECT", "JICHANG"] }
proxy-providers:
  'ONE':
    type: http
    url: "https://sub1.smallstrawberry.com/api/v1/client/subscribe?token=xxxxxxx"
    interval: 3600
    filter: '香港'
    path: ./provide/one.yml
    health-check:
      enable: true
      interval: 600
      url: https://cp.cloudflare.com/generate_204

这样就能做到只提取节点信息了。

我使用的内核是clash.meta,其他内核没测试过。

@powerAn2020
Copy link
Contributor

现在clash内核能订阅地址吗?如果可以该怎么配置文件?

# Set update interval using cron, for more information: https://crontab.guru/
crontab_sec='false'
update_interval="0 12 */3 * *" # updates will run at 12 noon every three days.
# Update sub&geo
# Type "su -c /data/adb/box/scripts/box.tool subgeo" to update
auto_update_geox="true"
# Only update clash subscription URL
auto_update_subscription="false"
subscription_url=""

看了下代码,这个订阅是简单粗暴的直接把下载的文件覆盖掉/data/adb/box/clash/config.yaml,我感觉应该是提取订阅文件中的节点信息替换/data/adb/box/clash/provide/domestic.yml吧,是我少看了哪块代码吗,求告知。🤣

@rockxsj 额,昨天刚提交了pr,引入yq实现了上面的功能,请问怎么判断自己是clash.meta?用脚本自动下载的是吗

@rockxsj
Copy link
Contributor

rockxsj commented May 17, 2023

是的,脚本默认下载的应该就是clash.meta,不过你也可以自己下载了放在bin目录下啊

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

4 participants