2dust / clashN

A clash client for Windows, support Mihomo
https://1.2345345.xyz
GNU General Public License v3.0
4.77k stars 592 forks source link

全局模式无效 #276

Closed BARUBORA closed 9 months ago

BARUBORA commented 1 year ago

CLASH订阅,自动配置系统代理,模式设置为全局时无效,观察"当前连接",各线路依然按照订阅规则在走.

q2051839 commented 1 year ago

我试了下,确实如此,我这好像是选定任意节点,得到的都是全局直连的效果。

2dust commented 1 year ago

哪个版本?

simplerick-simplefun commented 1 year ago

哪个版本?

最新版本,2.17

需要用户在自己的配置里把rules里面最后的“Match,xxxx”改成“Match,GLOBAL”才能生效。 如果rules里面没有“Match,xxxx”,ClashN也没有自动添加“Match,GLOBAL”。

看代码,貌似应该是修改或添加的: https://github.com/2dust/clashN/blob/69900d9bd6c3b25442d85d26e30c4bc0e06eb908/clashN/clashN/Handler/MainFormHandler.cs#L191

这个功能出bug了。

T1anjiu commented 10 months ago

确实有这个问题,目前只有规则可以用,全局不能连接time="2023-11-18T00:00:36+08:00" level=warning msg="[TCP] dial GLOBAL 127.0.0.1:6338 --> www.youtube.com:443 error: dial tcp4 127.0.0.1:443: connectex: No connection could be made because the target machine actively refused it."

T1anjiu commented 10 months ago

我试了前几个版本好像也会这样,不知道什么原因,期间也换电脑尝试,但是还是只能用rule模式