Open CC-3301 opened 1 week ago
https://github.com/vernesong/OpenClash/issues/4165#issuecomment-2466259636
先用着吧
或者到/usr/share/openclash/yml_change.sh
把Value['disable-keep-alive']=true
这一行给删了
同最新版,disable-keep-alive: false会被自动覆盖成disable-keep-alive: true,不写这个项也默认是 true
也不用关,600,15会有问题,改成300,60问题解决,耗电没测
昨天我想调整keep-alive也是一个情况,以为以前就是这样。 更新后连接数暴涨了,以前都是300左右,现在1700多,实际面板看不到这么多链接,不知道是不是这个原因引起的 有下载历史版本的地方么?想临时回.049避难
覆写设置-开发者选项里自己添加
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" 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行即可。
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 找不到相关配置关闭覆写
To Reproduce
Run
OpenClash Log
OpenClash Config
No response
Expected Behavior
添加选项,不强制覆写
Additional Context
No response