Skip to content
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

Open
6 tasks done
AntarcticBruin opened this issue Jan 16, 2025 · 6 comments
Labels
C: Backend T: Bug Something isn't working

Comments

@AntarcticBruin
Copy link

复现步骤 / Step to reproduce

开启开机自启之后,在clash-nyanpasu启动之前启动的软件会没有网络。

预期行为 / Expected behavior

他启动之前,应该保证其他软件的网络正常。

实际行为 / Actual behavior

他启动之前,其他软件没有网络。

应用日志 / App logs

No response

备注 / Addition details

No response

环境信息 / Environment information

----------- System -----------
OS: Windows 11 Pro for Workstations 26100
Arch: x86_64
----------- Device -----------
CPU: 11th Gen Intel(R) Core(TM) i7-11700 @ 2.50GHz @ 2.50GHz x 16
Memory: 31.73 GiB
----------- Core -----------
clash: Clash n2023-09-05-gdcc8d87 windows amd64 with go1.21.0 Tue Sep 5 14:32:57 UTC 2023
clash-rs: clash-rs 0.7.4
mihomo: Mihomo Meta v1.19.1 windows amd64 with go1.23.4 Tue Dec 31 16:58:28 UTC 2024 Use tags: with_gvisor
clash-rs-alpha: clash-rs 0.7.4-alpha+sha.63aec82
mihomo-alpha: Mihomo Meta alpha-c7661d7 windows amd64 with go1.23.4 Tue Jan 7 06:31:59 UTC 2025 Use tags: with_gvisor
----------- Build Info -----------
App Name: clash-nyanpasu
App Version: 0.1.0
Pkg Version: 2.0.0-alpha+6dc4e5a
Commit Hash: 6dc4e5a
Commit Author: GitHub
Commit Date: 2025-01-15T21:47:02.000Z
Build Date: 2025-01-16T00:47:37.756Z
Build Profile: Nightly
Build Platform: x86_64-pc-windows-msvc
Rustc Version: rustc 1.86.0-nightly (8361aef0d 2025-01-14)
Llvm Version: 19.1

自查步骤 / Verify steps

  • 如果您有足够的时间和能力,并愿意为此提交 PR,请勾上此复选框 / Pull request is welcome. Check this if you want to start a pull request
  • 您已知悉如果没有提供正确的系统信息,以及日志,您的 Issue 会直接被关闭 / You have known that if you don't provide correct system information and logs, your issue will be closed directly
  • 您已仔细查看并知情 Q&AFAQ 中的内容 / You have read and understood the contents of Q&A and FAQ
  • 您已搜索过 Issue Tracker,没有找到类似内容 / I have searched on Issue Tracker, No duplicate or related open issue has been found
  • 您确保这个 Issue 只提及一个问题。如果您有多个问题报告,烦请发起多个 Issue / Ensure there is only one bug report in this issue. Please make multiply issue for multiply bugs
  • 您确保已使用最新 Pre-release 版本测试,并且该问题在最新 Pre-release 版本中并未解决 / This bug have not solved in latest Pre-release version
@AntarcticBruin AntarcticBruin added S: Untriaged T: Bug Something isn't working labels Jan 16, 2025
@greenhat616
Copy link
Collaborator

开启系统代理或者 TUN 的状态下重启的?

@AntarcticBruin
Copy link
Author

开启系统代理或者 TUN 的状态下重启的?

是的,开启系统代理的情况下重启的,隔壁clash-verge-rev没有这个问题
#1822

@greenhat616
Copy link
Collaborator

不是高优先级的问题,是系统 shutdown 的时候这里没有重置系统代理或者 TUN 导致其他能走系统代理的程序启动时没有网络

@greenhat616
Copy link
Collaborator

greenhat616 commented Jan 16, 2025

高优先级用于处理一启动就需要系统代理的软件是比较合理的,但不是这个问题根本原因

@greenhat616
Copy link
Collaborator

cc @4o3F 实现关机时 cleanup 的方式是监听 WM_QUERYENDSESSION 消息。tauri 似乎没有集成这个,需要我们自己实现监听

@AntarcticBruin
Copy link
Author

请问这个可以处理一下吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: Backend T: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants