[BUG] 代理按钮点击开启后自动恢复关闭 原因应该是ProxySettingsPerUser注册表问题 需要兼容这种设置
Author: kokutoukiritsuguCreated Sep 28, 2026Updated Sep 28, 2026
Labelsbugplatform:windows
问题描述 / Describe the bug
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\Internet Settings]
"ProxySettingsPerUser"=dword:00000000这个ProxySettingsPerUser设置存在且=0的时候, 代理设置是在hklm中
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings]
"ProxyServer"="127.0.0.1:7897"
[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Internet Settings]
"ProxyServer"="127.0.0.1:7897"如果ProxySettingsPerUser不存在,或者非0的时候是在hkcu
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings]
"ProxyServer"="127.0.0.1:7897"软件版本 / CVR Version
2.5.6复现步骤 / To Reproduce
操作系统 / OS
- Windows
- Linux
- MacOS
操作系统版本 / OS Version
windows 11 25h2
日志(勿上传日志文件,请粘贴日志内容) / Log (Do not upload the log file, paste the log content directly)
[2026-09-28 14:59:30.882] INFO [Core] Refreshing system proxy guard...
[2026-09-28 14:59:30.882] INFO [Core] System proxy guard is disabled.
[2026-09-28 15:00:23.392] INFO [Core] Refreshing system proxy guard...
[2026-09-28 15:00:23.392] INFO [Core] System proxy guard is disabled.Source: clash-verge-rev/clash-verge-rev