Coder Social home page Coder Social logo

规则支持从文件读取 about clash HOT 9 CLOSED

dreamacro avatar dreamacro commented on July 22, 2024
规则支持从文件读取

from clash.

Comments (9)

Dreamacro avatar Dreamacro commented on July 22, 2024

可能以后会考虑吧,现在暂时不会做这个

from clash.

zwpaper avatar zwpaper commented on July 22, 2024

我觉得这个功能还是挺有用的,每次更新配置的时候,全局的配置文件会被更新,个人规则就会被覆盖,起码个人规则是否可以单独放到一个文件?

如果需要的话,我可以提一个 pr 把个人规则单独放到一个文件中

from clash.

Dreamacro avatar Dreamacro commented on July 22, 2024

@zwpaper 规则和代理以及代理组实际上是强相关的,所以分开反而增加了心智负担

from clash.

zwpaper avatar zwpaper commented on July 22, 2024

有一种场景是服务器信息通过 api 更新,每次更新就会覆盖自定义规则

你说的强相关应该是规则里可以指定代理,可是大多数情况规则里一个 PROXY 指明走当前代理就足够了

个人规则中指定代理的情况貌似不好处理…服务器信息更新,无论一起还是分开,都需要更改服务器信息

总的来说,个人规则无论是否独立,服务器变更都会需要改动,除非不使用个人规则,全都由服务器生成,可是这不实际

以上,我只用过 Shadowsocks,可能也有考虑不周的地方,但是我还是认为个人规则有必要独立。

from clash.

blackteajing avatar blackteajing commented on July 22, 2024

因为最近正在试着用php合并规则,这个事挺麻烦的,毕竟各种维护的很不错的规则项目里代理和代理组也都是随个人习惯起名,有人叫auto有人叫url-test,有人叫PROXY,也有人叫proxy.... 肯定能调整好,毕竟就是来来回回改数组就是了,但是不太容易找到通用规律。

from clash.

Dreamacro avatar Dreamacro commented on July 22, 2024

会在实现 rule-set 的时候支持

from clash.

dcy10000 avatar dcy10000 commented on July 22, 2024

@Dreamacro 希望能早日支持。因为一般的配置文件由服务商提供。如果把个人想要自定义的规则写在里头。会导致下次更新配置文件时被覆盖。
希望支持的功能:也就是提供一个单独的用户 Rule 文件。这里的 Rule 规则优先级高于config.yml里面的 Rule 就行

from clash.

BirkhoffLee avatar BirkhoffLee commented on July 22, 2024

I'll leave further discussion to #272. This will be closed after the feature is implemented.

from clash.

Dreamacro avatar Dreamacro commented on July 22, 2024

https://github.com/Dreamacro/clash/releases/tag/premium 实现了部分规则集功能

from clash.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.