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

在windows 系统下,未关闭 clash 情况下重启或关机导致 WSL 异常 #1721

Closed
5 of 6 tasks
ElvisWai opened this issue Oct 8, 2024 · 9 comments
Closed
5 of 6 tasks
Labels
S: Stale This issue/PR has not received any recent activity or response. S: Untriaged T: Bug Something isn't working

Comments

@ElvisWai
Copy link

ElvisWai commented Oct 8, 2024

复现步骤 / Step to reproduce

  1. 在windows 系统下,未关闭 clash 情况下重启或关机
  2. 重启/开机后,使用 WSL 会导致 异常,原因为:注册列表的 IPv6 值被修改,异常退出后无法重置为:0
  3. 修复,参考:No interfaces in Ubuntu when using networkingMode=mirrored microsoft/WSL#11002

预期行为 / Expected behaviour

异常退出后,重新打开应用并打开代理--关闭代理后,应该把 IPv6 恢复,不影响 WSL 工作

实际行为 / Actual Behaviour

在windows 系统下,未关闭 clash 情况下重启或关机导致 WSL 异常

应用日志 / App logs

No response

备注 / Addition details

暂无

环境信息 / Environment information

系统:Windows 11
Clash Nyanpasu : 1.6.1
Clash 内核: v1.18.8 Meta

自查步骤 / 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 mutiply issue for mutiply bugs
  • 您确保已使用最新 Pre-release 版本测试,并且该问题在最新 Pre-release 版本中并未解决 / This bug have not solved in latest Pre-release version
@ElvisWai ElvisWai added S: Untriaged T: Bug Something isn't working labels Oct 8, 2024
@greenhat616
Copy link
Collaborator

Nyanpasu 内部配置是怎样的?启用了系统代理了么?

本地环境也是 WSL2 + Mirrored。在当前使用环境下,未碰到此问题。

@ElvisWai
Copy link
Author

ElvisWai commented Oct 8, 2024

开启了系统代理 + 规则模式(规则主要是本地域名不走代理)
配置如下:
image

不关闭系统代理的情况下重启电脑试试,重启后使用WSL

@greenhat616
Copy link
Collaborator

greenhat616 commented Oct 8, 2024

无法复现此问题
图片
图片
图片
图片

@ElvisWai
Copy link
Author

ElvisWai commented Oct 9, 2024

image
image

本地能重复复现🤔

  • 开启应用及【系统代理】 --> 不关闭应用及【系统代理】情况下,点击【重启电脑】 --> 重启后打开 WSL

@greenhat616
Copy link
Collaborator

greenhat616 commented Oct 9, 2024

我观察了一下那个 issue 的上下文:

Location: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters
Name: DisabledComponents
Type: REG_DWORD
Min Value: 0x00 (default value)
Max Value: 0xFF (IPv6 disabled)

提及修改了 DisabledComponents 的值, 但实际上我们通过系统调用修改代理服务器,不涉及此注册表才对.
这是操作系统代理的源码: https://github.com/zzzgydi/sysproxy-rs/blob/45fffb0cdddb7c2d0ce30300dd72a934bb458c09/src/windows.rs#L44-L75

@ElvisWai
Copy link
Author

ElvisWai commented Oct 9, 2024

我查看相关的issues 是 VPN 不支持 IP6 代理,因此在开启代理后会因为网络修改而自动修改注册列表。该问题你可以通过查看注册表中该值去验证,在代理开启状态下,10进制为 255。
其次,在设置中 IP6 为打开状态的情况下【重启】后,该值处于无法选中的情况
image

@greenhat616
Copy link
Collaborator

greenhat616 commented Oct 9, 2024

我查看相关的issues 是 VPN 不支持 IP6 代理,因此在开启代理后会因为网络修改而自动修改注册列表。该问题你可以通过查看注册表中该值去验证,在代理开启状态下,10进制为 255。 其次,在设置中 IP6 为打开状态的情况下【重启】后,该值处于无法选中的情况 image

如果是这个问题导致的,那你应该去 mihomo 反馈. 这个值是 mihomo 管理的.

此外,这是我这里的注册表值:
图片

按:https://learn.microsoft.com/en-us/troubleshoot/windows-server/networking/configure-ipv6-in-windows
描述来看,是不会对 ipv6 产生影响的.

Copy link
Contributor

github-actions bot commented Nov 9, 2024

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

@github-actions github-actions bot added the S: Stale This issue/PR has not received any recent activity or response. label Nov 9, 2024
Copy link
Contributor

This issue is closed because it has been stale for 5 days with no activity.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S: Stale This issue/PR has not received any recent activity or response. S: Untriaged T: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants