vernesong / OpenClash

A Clash Client For OpenWrt
MIT License
17.64k stars 3.19k forks source link

[Bug] 050版本无法自动关闭连接 #4170

Open CC-3301 opened 1 week ago

CC-3301 commented 1 week ago

Verify Steps

OpenClash Version

v0.46.050-beta

Bug on Environment

Immortalwrt

OpenWrt Version

ImmortalWrt SNAPSHOT / LuCI Master 24.299.53074~4b66bf5

Bug on Platform

Linux-amd64-v3(x86-64)

Describe the Bug

更新50版本后发现连接不会自动关闭,配置文件写了 disable-keep-alive: false 但会被自动覆写成 disable-keep-alive: true 找不到相关配置关闭覆写 image image

To Reproduce

Run

OpenClash Log

None

OpenClash Config

No response

Expected Behavior

添加选项,不强制覆写

Additional Context

No response

fejeIaqbhbv commented 1 week ago

https://github.com/vernesong/OpenClash/issues/4165#issuecomment-2466259636

先用着吧

或者到/usr/share/openclash/yml_change.shValue['disable-keep-alive']=true这一行给删了

Zarah636 commented 1 week ago

同最新版,disable-keep-alive: false会被自动覆盖成disable-keep-alive: true,不写这个项也默认是 true image

lito12345 commented 1 week ago

也不用关,600,15会有问题,改成300,60问题解决,耗电没测

dqbpqdpb commented 1 week ago

昨天我想调整keep-alive也是一个情况,以为以前就是这样。 更新后连接数暴涨了,以前都是300左右,现在1700多,实际面板看不到这么多链接,不知道是不是这个原因引起的 有下载历史版本的地方么?想临时回.049避难

TOPGUUN commented 1 week ago

覆写设置-开发者选项里自己添加

    ruby_edit "$CONFIG_FILE" "['disable-keep-alive']" "false"
    ruby_edit "$CONFIG_FILE" "['keep-alive-interval']" "60"
    ruby_edit "$CONFIG_FILE" "['keep-alive-idle']" "300"
dqbpqdpb commented 1 week ago

覆写设置-开发者选项里自己添加

    ruby_edit "$CONFIG_FILE" "['disable-keep-alive']" "false"
    ruby_edit "$CONFIG_FILE" "['keep-alive-interval']" "60"
    ruby_edit "$CONFIG_FILE" "['keep-alive-idle']" "300"

有效!多谢 ruby_edit "$CONFIG_FILE" "['disable-keep-alive']" "false" 只需要1行即可。