You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sing-box使用类似winsw的包装器以windows服务方式启动时,set_system_proxy字段设置为true但无法正常设置开启windows系统代理。查阅源码后发现,sing-box在windows平台设置系统代理使用的应该是windows api InternetSetOptionW,根据此文档的描述,该函数不能用于服务方式设置系统代理,如果要使用服务方式启动,应使用WinHTTP中的api,此问题可能是上述原因造成的。直接在CMD终端中使用命令启动sing-box则不会出现此问题。希望sing-box能够适配以提供更好的兼容性,谢谢!
The problem with running WinInet in a service is that WinInet uses settings from the registry for SSL information, proxy information, and more. Services do not load the HKEY_CURRENT_USER registry hive, so this information is not available.
操作系统
Windows
系统版本
windows 10 64位
安装类型
sing-box 原始命令行程序
如果您使用图形客户端程序,请提供该程序版本。
No response
版本
描述
sing-box使用类似winsw的包装器以windows服务方式启动时,set_system_proxy字段设置为true但无法正常设置开启windows系统代理。查阅源码后发现,sing-box在windows平台设置系统代理使用的应该是windows api InternetSetOptionW,根据此文档的描述,该函数不能用于服务方式设置系统代理,如果要使用服务方式启动,应使用WinHTTP中的api,此问题可能是上述原因造成的。直接在CMD终端中使用命令启动sing-box则不会出现此问题。希望sing-box能够适配以提供更好的兼容性,谢谢!
重现方式
在入站中使用以下配置,并使用windows服务方式启动sing-box
日志
支持我们
完整性要求
The text was updated successfully, but these errors were encountered: