-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
修改 fake_ip_filter.list 适配方式,尽量使用 domain
和 domain_suffix
#619
Conversation
fake_ip_filter.list 仅中间区域带有 `*` 的域名使用 `domain_regex` 规则类型
panic: runtime error: index out of range [5] with length 5 goroutine 1 [running]: github.com/sagernet/sing/common/domain.newSuccinctSet({0xc0000a9008, 0x8a, 0xc0003ce4e0?}) github.com/sagernet/sing@v0.4.0-beta.6/common/domain/set.go:31 +0x5c5 github.com/sagernet/sing/common/domain.NewMatcher({0x0, 0x0, 0x8f?}, {0xc00016a408, 0x5c, 0xc00059dd58?}) github.com/sagernet/sing@v0.4.0-beta.6/common/domain/matcher.go:39 +0x50d github.com/sagernet/sing-box/route.NewDomainItem({0x0, 0x0, 0x0}, {0xc00016a408, 0x5c, 0x8f}) github.com/sagernet/sing-box/route/rule_item_domain.go:41 +0x299 github.com/sagernet/sing-box/route.NewDefaultDNSRule({_, }, {, }, {{0x0, 0x0, 0x0}, 0x0, {0x0, 0x0, ...}, ...}, ...) github.com/sagernet/sing-box/route/rule_dns.go:141 +0x101a github.com/sagernet/sing-box/route.NewDNSRule({, }, {, }, {{0x140f456, 0x7}, {0x0, 0x0, 0x0}, {{0x0, ...}, ...}, ...}, ...) github.com/sagernet/sing-box/route/rule_dns.go:64 +0x265 github.com/sagernet/sing-box/route.NewRouter({, }, {, _}, {0x0, 0x0, {0xc0002e2008, 0x15, 0x23}, {0xc00019e000, ...}, ...}, ...) github.com/sagernet/sing-box/route/router.go:195 +0x102d github.com/sagernet/sing-box.New({{{0xc000560000, 0x18538, 0x1a000}, {0x0, 0x0}, 0xc0001e9980, 0xc00019e0e0, 0x0, {0xc0002a6008, 0x4, ...}, ...}, ...}) github.com/sagernet/sing-box/box.go:90 +0x5d4 main.check() github.com/sagernet/sing-box/cmd/sing-box/cmd_check.go:34 +0x198 main.init.func19(0xc0001a1b00?, {0xc0000b8ac0?, 0x4?, 0x140dad7?}) github.com/sagernet/sing-box/cmd/sing-box/cmd_check.go:16 +0x17 github.com/spf13/cobra.(*Command).execute(0x1fbd540, {0xc0000b8a40, 0x4, 0x4}) github.com/spf13/cobra@v1.8.0/command.go:987 +0xab1 github.com/spf13/cobra.(*Command).ExecuteC(0x1fbe960) github.com/spf13/cobra@v1.8.0/command.go:1115 +0x3ff github.com/spf13/cobra.(*Command).Execute(...) github.com/spf13/cobra@v1.8.0/command.go:1039 main.main() github.com/sagernet/sing-box/cmd/sing-box/main.go:38 +0x1e |
格式没问题呀,我这边测试了的,特别是 |
domain_suffix 有问题,另外两个都没事儿,1.8和1.9我都试了 |
嗯,就是这个,我来改改。 |
把带.的去掉应该就可以了 {print "."$0} |
我又推了,应该可以了。 |
@DustinWin 打好包了,明天再测一下 |
仅删除 |
fake_ip_filter.list 仅中间区域带有
*
的域名使用domain_regex
规则类型