vernesong / OpenClash

A Clash Client For OpenWrt
MIT License
17.71k stars 3.2k forks source link

[Bug] 自定义规则直连网站,访问后会报错并崩溃内核 #4179

Closed 771695775 closed 1 week ago

771695775 commented 1 week ago

Verify Steps

OpenClash Version

0.46.050

Bug on Environment

Other

OpenWrt Version

OpenWrt R24.2.2 SPP V1

Bug on Platform

Linux-amd64(x86-64)

Describe the Bug

自定义直连规则后,访问被自定义的网站会崩溃内核导致openclash卡死重启,不妨问一切正常

To Reproduce

覆写设置-规则设置-自定义规则“- DOMAIN-KEYWORD,linglong,DIRECT” 打开https://new.linglong521.cn/index.php?c=click&id=4&u=lingyun 或 https://new.linglong521.cn/index.php?c=click&id=48&u=lingyun 就会导致内核崩溃

OpenClash Log

已上传日志

OpenClash Config

No response

Expected Behavior

修复

Additional Context

网站无问题,关闭openclash后正常打开 崩溃后插件日志提示“守护程序:检测到 Clash 内核崩溃,重启中” 运行日志会提示大量的“level=warning msg="[TCP] dial DIRECT (match DomainKeyword/linglong) 192.168.31.2:54870 --> 10010.linglong521.cn:443 error: reject loopback connection to: 10010.linglong521.cn:443" 如图所示 微信截图_20241114230347 微信截图_20241114230404 日志.txt

771695775 commented 1 week ago

打开网站后刷新几次就崩溃了,机器是N100分配了1G内存

771695775 commented 1 week ago

感谢修复,修改这两个文件后已解决