Skip to content
New issue

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

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

Already on GitHub? # to your account

scanning filter contents: bufio.Scanner: token too long #16

Closed
BlueSkyXN opened this issue Jul 17, 2023 · 11 comments
Closed

scanning filter contents: bufio.Scanner: token too long #16

BlueSkyXN opened this issue Jul 17, 2023 · 11 comments

Comments

@BlueSkyXN
Copy link
Owner

今天迁移ADH的时候发现的问题
v0.107.16 老机器,大规则正常
v0.107.34 新机器,报错如下

Error: control/filtering/add_url | Couldn't fetch filter from URL "https://raw.githubusercontent.com/BlueSkyXN/AdGuardHomeRules/master/all.txt": scanning filter contents: bufio.Scanner: token too long | 400

@BlueSkyXN
Copy link
Owner Author

Error: control/filtering/add_url | Couldn't fetch filter from URL "https://raw.githubusercontent.com/BlueSkyXN/AdGuardHomeRules/master/Part/rules-renew.txt": scanning filter contents: bufio.Scanner: token too long | 400

连12MB的都不行了

@BlueSkyXN
Copy link
Owner Author

@BlueSkyXN
Copy link
Owner Author

切割成9M,还是不行

Error: control/filtering/add_url | Couldn't fetch filter from URL "https://raw.githubusercontent.com/BlueSkyXN/AdGuardHomeRules/master/Part/all-lite-p1.txt": scanning filter contents: bufio.Scanner: token too long | 400

@BlueSkyXN
Copy link
Owner Author

@BlueSkyXN
Copy link
Owner Author

@BlueSkyXN
Copy link
Owner Author

@BlueSkyXN
Copy link
Owner Author

@BlueSkyXN
Copy link
Owner Author

@BlueSkyXN
Copy link
Owner Author

使用最新测试版即可,比如 https://github.com/BlueSkyXN/AdGuardHomeRules/releases/tag/3.4.1 这里面附带的 18版本

@BlueSkyXN
Copy link
Owner Author

或者采用官方的过滤长规则

@zutzo
Copy link

zutzo commented Jul 17, 2023

@BlueSkyXN
建议用AdGuard官方的HostlistCompiler处理规则
https://github.com/AdguardTeam/HostlistCompiler
主规则我看了一下 有很多AdGuardHome不支持的规则 比如 $3p ## 等等 这些规则不适用于ADGH
并且规则夹杂着ABP和Hosts 两者普通工具无法进行合并去重 增大了文件的大小 也给ADGH重负担
通过使用HostlistCompiler可以解决
image

(顺便问一下为什么规则连注释都不删😓

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

No branches or pull requests

2 participants