sbwml / luci-app-mosdns

一个 DNS 转发器 - OpenWrt 🎁 MosDNS v5 is Ready! 🎉
https://github.com/IrineSistiana/mosdns
1.1k stars 214 forks source link

添加自定义广告规则本地文件后bootloop #195

Closed Yuko1997 closed 6 months ago

Yuko1997 commented 6 months ago

添加本地文件路径,保存并应用,然后插件开始循环重启,日志一直在重复刷新load,看不出别的报错 20240222162218 mosdns.log config.yaml.json 视频https://krakenfiles.com/view/ad1J34OOsw/file.html

sbwml commented 6 months ago

luci 停止mosdns 用命令行启动看错误信息 /usr/bin/mosdns start -c /etc/mosdns/config.yaml

Yuko1997 commented 6 months ago

luci 停止mosdns 用命令行启动看错误信息 /usr/bin/mosdns start -c /etc/mosdns/config.yaml

没有什么信息,也没有发生循环,但是经测试所有广告过滤规则都失效了,包括自带的和本地文件 20240222200022 mosdns.log

sbwml commented 6 months ago

命令 netstat -tuln | grep 5335

看看 mosdns 监听端口有和现有程序冲突没

sbwml commented 6 months ago

还有个就是 你是添加了本地文件的ad 拦截列表后出现的无法启动?

sbwml commented 6 months ago

还有个就是 你是添加了本地文件的ad 拦截列表后出现的无法启动?

如果是这样的话,大可能性是你用的规则列表不是 mosdns 支持的规则格式。

Yuko1997 commented 6 months ago

还有个就是 你是添加了本地文件的ad 拦截列表后出现的无法启动?

是这样的,删除了本地文件路径就一切正常,端口没有冲突 格式是纯域名列表,应该没错 20240223001117

sbwml commented 6 months ago

把你的列表上传一份,有空我试试

Yuko1997 commented 6 months ago

把你的列表上传一份,有空我试试

domain.txt

sbwml commented 6 months ago

修复 https://github.com/sbwml/luci-app-mosdns/commit/0da873fbb9cee37c5264f1ca3f01eb6f11a657da