Giter Club home page Giter Club logo

Comments (5)

SunsetMkt avatar SunsetMkt commented on July 17, 2024

这是CFW的使用问题,参见 https://docs.cfw.lbyczf.com/contents/parser.html#%E6%AD%A3%E5%88%99%E5%8C%B9%E9%85%8D

以下配置应该会匹配任意HTTP协议链接,注意将url替换为reg

parsers:
  - reg: ^http.+$
    yaml:
      后文省略

from anti-ip-attribution.

Nevidebla avatar Nevidebla commented on July 17, 2024

这是CFW的使用问题,参见 https://docs.cfw.lbyczf.com/contents/parser.html#%E6%AD%A3%E5%88%99%E5%8C%B9%E9%85%8D

以下配置应该会匹配任意HTTP协议链接,注意将url替换为reg

parsers:
  - reg: ^http.+$
    yaml:
      后文省略

可能我没表述清楚,我的意思其实是,每家机场都有各自不同的节点,也都有各自预设的分组。
怎样能在这一个parser文件中把每个订阅不同的具体配置都分别写出来?
如果按你回复的那个代码,就相当于让各个订阅共用一套配置了,这样必然对应不上,会出故障。

from anti-ip-attribution.

SunsetMkt avatar SunsetMkt commented on July 17, 2024

from anti-ip-attribution.

Nevidebla avatar Nevidebla commented on July 17, 2024

举个例子:
有个我经常去的网站,仅限法国IP访问,
我手上10个机场,其中4家都有法国节点,但是名字肯定各不相同,
比如叫法国线路、法国A1、法国原生01、原生法国1线 等等
如果按正常的方式去设定,肯定是会出故障的

from anti-ip-attribution.

SunsetMkt avatar SunsetMkt commented on July 17, 2024

这个parser会创建一个代理组,组内的流量通过🔰 选择节点这个组中选择的代理节点。
只要配置文件中选择代理的组的名称是🔰 选择节点,应该就是通用的。
如果一定要程序化地处理,https://docs.cfw.lbyczf.com/contents/parser.html#%E8%BF%9B%E9%98%B6%E6%96%B9%E6%B3%95-javascript 可能会有帮助。

from anti-ip-attribution.

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.