-
Notifications
You must be signed in to change notification settings - Fork 649
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
开启开机自启之后,在clash-nyanpasu启动之前启动的软件会没有网络,希望可以优化一下。 #2408
Comments
开启系统代理或者 TUN 的状态下重启的? |
是的,开启系统代理的情况下重启的,隔壁clash-verge-rev没有这个问题 |
不是高优先级的问题,是系统 shutdown 的时候这里没有重置系统代理或者 TUN 导致其他能走系统代理的程序启动时没有网络 |
高优先级用于处理一启动就需要系统代理的软件是比较合理的,但不是这个问题根本原因 |
cc @4o3F 实现关机时 cleanup 的方式是监听 |
请问这个可以处理一下吗 |
试着加了下 shutdown 钩子。看看能不能正常工作。 |
目前系统代理的重置已通过 shutdown hook 解决,能确保启动过程中使用系统代理的应用可以直接访问网络。如果不需要开机就有软件依赖代理的话,这是最优解。 如果想要开机就有软件需要使用代理,一般配合 TUN 模式启用,目前有个正在进行中的 pr,即以管理员身份自启动 app。 |
复现步骤 / Step to reproduce
开启开机自启之后,在clash-nyanpasu启动之前启动的软件会没有网络。
预期行为 / Expected behavior
他启动之前,应该保证其他软件的网络正常。
实际行为 / Actual behavior
他启动之前,其他软件没有网络。
应用日志 / App logs
No response
备注 / Addition details
No response
环境信息 / Environment information
自查步骤 / Verify steps
The text was updated successfully, but these errors were encountered: