surgioproject / surgio

Generating rules for Surge, Clash, Quantumult like a PRO

Home Page:https://surgio.js.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

同一个机场两种协议的订阅都会返回“剩余流量”导致出现重复的 proxy group

ZedRover opened this issue · comments

使用同一家机场的ss 和 trojan 订阅作为provider时直接按照下面的方式写surgio.conf.js会导致生成的surge 配置中proxy group 里有两个“剩余流量”引发报错,尝试使用 filter 也无法排除

    customFilters:{
        myFilter: utils.discardKeywords(['剩余','时间'])
    }
    {
      name: 'SurgeV3_combine.conf',
      template: 'surge_v3',
      provider: 'ss',
      combineProviders: ['trojan'],
      customParams: {
        magicVariable: utils.myFilter,
      },
    },