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

[Feature] 在规则中直接添加 #1036

Open
alan42521 opened this issue May 19, 2024 · 6 comments
Open

[Feature] 在规则中直接添加 #1036

alan42521 opened this issue May 19, 2024 · 6 comments
Labels
enhancement New feature or request

Comments

@alan42521
Copy link

功能描述 / Feature description

在cfw中,有图形化的界面可以直接添加规则,而clash verge只能通过修改配置文件来添加,希望clash verge也能通过图形界面快捷添加规则
捕获

使用场景 / Use case

在需要给一些网站专门配置规则时

@alan42521 alan42521 added the enhancement New feature or request label May 19, 2024
@Xuu6770
Copy link

Xuu6770 commented May 21, 2024

不仅如此,添加完以后还不会立刻生效,还要在订阅界面点击重新激活订阅,就有点麻烦。

事实上我更希望能添加一个“本地规则优先”的功能,就比如我在本地添加一个microsoft.com走代理的规则,无论机场本身的规则对microsoft.com如何处理,Clash 都应该以我本地的规则优先。

谢谢。

@lipanzjzs
Copy link

不仅如此,添加完以后还不会立刻生效,还要在订阅界面点击重新激活订阅,就有点麻烦。

事实上我更希望能添加一个“本地规则优先”的功能,就比如我在本地添加一个microsoft.com走代理的规则,无论机场本身的规则对microsoft.com如何处理,Clash 都应该以我本地的规则优先。

谢谢。

这个功能在clash里就没好好实现过,各种类产品都超级麻烦

@bububuhe
Copy link

macOS 系统
直接修改规则,更新订阅文件时,修改内容会被覆盖,有解决办法吗?

@Xuu6770
Copy link

Xuu6770 commented May 31, 2024

不仅如此,添加完以后还不会立刻生效,还要在订阅界面点击重新激活订阅,就有点麻烦。
事实上我更希望能添加一个“本地规则优先”的功能,就比如我在本地添加一个microsoft.com走代理的规则,无论机场本身的规则对microsoft.com如何处理,Clash 都应该以我本地的规则优先。
谢谢。

这个功能在clash里就没好好实现过,各种类产品都超级麻烦

不好实现是不是因为每条规则都要指定一个proxy-groups,但是每家机场的配置文件中的proxy-groupsname又不一样?

↑ 我不确定,只是我自己真么想的。

我在 iOS 上使用 Quantumult X 的时候就可以添加自定义规则并且决定其是否要走代理, Quantumult X 对于每条自定规则都提供 3 个策略:

  1. PROXY
  2. DIRECT
  3. REJECT

例如我想让bing.com走代理的话,我就将这条规则的策略设定成PROXY就行了,无论我使用哪家机场, Quantumult X 都会bing.com走代理,但是我也不知道它是怎么实现这个功能的。😢

@Xuu6770
Copy link

Xuu6770 commented May 31, 2024

macOS 系统 直接修改规则,更新订阅文件时,修改内容会被覆盖,有解决办法吗?

Windows 也一样的,你修改的是机场提供的配置文件,修改后只在本地生效,你一更新订阅,程序又从云端获取最新的配置文件,故而覆盖了。

这个功能只能说机场有心的话就会自己提供,我之前用过一个机场就是可以在网站里自定义规则。

@bububuhe
Copy link

https://github.com/yanue/V2rayU.git
我现在在用这个,这个可以添加 pac 规则而不会覆盖。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants