2dust / v2rayN

A GUI client for Windows, support Xray core and v2fly core and others
https://1.2345345.xyz
GNU General Public License v3.0
64.06k stars 10.88k forks source link

[Bug]: 退出v2rayN经常没有清除系统代理 #5192

Open code-hasaki opened 1 month ago

code-hasaki commented 1 month ago

预期情况

退出v2rayN清除系统代理

实际情况

退出v2rayN没有清除系统代理,再次运行v2rayN然后退出就会清除。之前使用6.23版本没注意这个问题,升级到6.43经常出现这个问题,升级到6.45还是会有这个问题。

复现方法

用的win10系统,右键点击桌面右下角任务栏v2rayN图标,左键点击退出,不是每次都出现。

日志信息

2024-06-05 01:20:24.0950-INFO MyAppExit Begin 2024-06-05 01:20:24.1297-INFO MyAppExit End 2024-06-05 01:20:24.1383-INFO OnExit 2024-06-05 11:27:51.9380-INFO v2rayN start up | v2rayN - V6.45 - 2024/05/18 | D:\Program Files\vpn\v2rayN-With-Core\v2rayN.exe 2024-06-05 11:28:52.3113-INFO UpdateTaskRunSubscription 2024-06-05 11:29:52.3095-INFO UpdateTaskRunGeo 2024-06-05 23:58:12.7126-INFO MyAppExit Begin 2024-06-05 23:58:12.7254-DEBUG Set Internet Proxy failed with error code: 1722,Set Internet Proxy failed with error code: 1722 2024-06-05 23:58:12.7454-DEBUG at v2rayN.Handler.ProxySetting.SetConnectionProxy(String connectionName, String strProxy, String exceptions, Int32 type) at v2rayN.Handler.ProxySetting.SetProxy(String strProxy, String exceptions, Int32 type) at v2rayN.Handler.ProxySetting.UnsetProxy() at v2rayN.Handler.SysProxyHandle.UpdateSysProxy(Config config, Boolean forceDisable) 2024-06-05 23:58:12.7454-INFO MyAppExit End 2024-06-05 23:58:12.7648-INFO OnExit

额外信息

No response

我确认已更新至最新版本

我确认已查询历史issues

2dust commented 4 weeks ago

什么系统版本? 看日志是清除时失败了,尝试下用管理员启动v2rayN

code-hasaki commented 3 weeks ago

什么系统版本? 看日志是清除时失败了,尝试下用管理员启动v2rayN

image image 我这边一直使用管理员启动v2rayN

x2287711259 commented 2 weeks ago

我也碰到这种情况了,经常会导致直接断网,也是win10系统,进入网络代理设置里面把代理关掉就行了,或者重新打开v2rayn再重新关闭就好了

2dust commented 2 weeks ago

换一个思路,不要用系统代理了,chrome安装proxy插件吧

wanghaora commented 5 days ago

自动配置代理不会改变系统代理 不知道咋回事 目前最新版

code-hasaki commented 3 days ago

image 不退出点击"清除系统代理"没遇到过问题,在"自动配置系统代理"时退出经常遇到问题。

2dust commented 2 days ago

在开发设备上无法复现,然后查了文档,如下,暂时不知道如何修复,等待有人解决 Error 1722 is usually an environmental issue. The most common causes are problems with the network itself, or the blocking of data traffic by a firewall. Check that the the Remote Procedure Call (RPC) service shows as 'Running' within Windows Services.