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

proxy-provider and proxy-groups support exclude node by node type #321

Merged
merged 4 commits into from
Jan 6, 2023

Conversation

ag2s20150909
Copy link

@ag2s20150909 ag2s20150909 commented Jan 3, 2023

proxy-provider 和proxy-groups 支持通过节点类型排除
proxy-provider and proxy-groups support exclude node by node type

proxy-provider example:

proxy-providers:
  xxxxx:
    type: http
    url: xxxxxx
    path: xxx
    #filter: "xxx"  #支持正则表达式根据节点名称筛选
    #exclude-filter: "xxx" #支持正则表达式根据节点名称排除
    exclude-type: "ss|http" #不支持正则表达式,通过 "|" 分割,根据节点类型排除
    interval: 3600
    health-check:
      enable: true
      url: http://www.gstatic.com/generate_204
      interval: 3600

proxy-groups example:
https://github.com/MetaCubeX/Clash.Meta/blob/Alpha/constant/adapters.go

proxy-groups:
  - name: XXX
    type: url-test
    #filter: "xxx" #支持正则表达式根据节点名称筛选
    #exclude-filter: "xxx" #支持正则表达式根据节点名称排除
    exclude-type: "Shadowsocks|Http" #不支持正则表达式,通过 "|" 分割,根据节点类型排除,注意,名称与proxy-providers不同
    use:
      -xxxxx
    proxies:
      - xxxx
    # tolerance: 150
    # lazy: true
    url: "http://www.gstatic.com/generate_204"
    interval: 300

@stitchrs stitchrs merged commit cd7134e into MetaCubeX:Alpha Jan 6, 2023
H1JK added a commit that referenced this pull request Jan 7, 2023
Replace all double spaces to tabs due to Go fmt proposal.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants