Skip to content

Navigation Menu

Sign in
Sign up

Latest commit

History

42 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

singbox and mihomo rule convert

在rule.txt添加规则集,自动生成 singbox:srs/mihomo:mrs Format。fork后自己添加想要转换的规则集。

仓库 Settings ----> Actions ----> General ----> Workflow permissions ----> Read and write permissions 勾选上

规则集源文件写法eg:
singbox:

{
 "tag": "cn",
 "type": "remote",
 "format": "binary",
 "url": "https://gh-proxy.org/github.com/77160860/rule/raw/main/singbox/cn.srs",
}
{
 "tag": "cn",
 "type": "remote",
 "format": "source",
 "url": "https://gh-proxy.org/github.com/77160860/rule/raw/main/singbox/cn.json",
}

mihomo:

rule-anchor:
 ip: &ip {type: http, interval: 86400, behavior: ipcidr, format: mrs}
 domain: &domain {type: http, interval: 86400, behavior: domain, format: mrs}
rule-providers:
 cn:
 <<: *domain
 url: "https://gh-proxy.org/github.com/77160860/rule/raw/main/mihomo/cn.mrs"
 cnip:
 <<: *ip
 url: "https://gh-proxy.org/github.com/77160860/rule/raw/main/mihomo/cnip.mrs"

About

singbox and mihomo rule convert

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

AltStyle によって変換されたページ (->オリジナル) /