BlueSkyXN / AdGuardHomeRules

高达百万级规则!由我原创&整理的 AdGuardHomeRules ADH广告拦截过滤规则!打造全网最强最全规则集
https://www.blueskyxn.com/202012/2940.html
Apache License 2.0
1.48k stars 156 forks source link

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

Closed BlueSkyXN closed 1 year ago

BlueSkyXN commented 1 year ago

今天迁移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 commented 1 year ago

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 commented 1 year ago

https://raw.githubusercontent.com/BlueSkyXN/AdGuardHomeRules/master/Renew/StevenBlack.txt

实测6M可以,推测是10M的限制

BlueSkyXN commented 1 year ago

切割成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 commented 1 year ago

类似的问题 https://github.com/AdguardTeam/AdGuardHome/issues/6016 https://github.com/AdguardTeam/AdGuardHome/issues/6003

BlueSkyXN commented 1 year ago

https://github.com/AdguardTeam/AdGuardHome/issues/6017

BlueSkyXN commented 1 year ago

Download EDGE Version https://static.adguard.com/adguardhome/edge/AdGuardHome_linux_amd64.tar.gz

BlueSkyXN commented 1 year ago

测试版下载地址 https://github.com/AdguardTeam/AdGuardHome/wiki/Platforms

BlueSkyXN commented 1 year ago

https://github.com/BlueSkyXN/AdGuardHomeRules/releases/tag/3.4.1

BlueSkyXN commented 1 year ago

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

BlueSkyXN commented 1 year ago

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

zutzo commented 1 year ago

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

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