vernesong / OpenClash

A Clash Client For OpenWrt
MIT License
17.54k stars 3.18k forks source link

Feature Request: 当订阅链接down掉的时候,保持现有的配置文件不变 #279

Closed luvletter2333 closed 2 years ago

luvletter2333 commented 4 years ago

有时候跑在本地的subconverter会down掉,但openclash会强行更新错误的订阅:

The following link doesn't contain any valid node info: https://example.link/link/ABCD****123?mu=4

导致整个openclash挂掉

请问能否在无法解析yaml的情况下不要更新openclash的配置文件?

luvletter2333 commented 4 years ago

源代码在这里:https://github.com/vernesong/OpenClash/blob/501e18c2498804fcc8e9cd6aaea2ea90fd708bfb/luci-app-openclash/files/usr/share/openclash/openclash.sh#L16

是否可以先download到一个config.tmp里面 然后用yamllint之类的工具检验合法性 再替换掉当前的配置?

vernesong commented 4 years ago

过段时间我就加上合法性检测,目前内核已经支持test

luvletter2333 commented 4 years ago

谢谢

vernesong notifications@github.com 于2020年3月25日周三 下午11:59写道:

过段时间我就加上合法性检测,目前内核已经支持test

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/vernesong/OpenClash/issues/279#issuecomment-603924133, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHQEPQWS7QMFKJFNNCDU66LRJIS4HANCNFSM4LTLHKNA .

github-actions[bot] commented 2 years ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 5 days