tindy2013 / subconverter

Utility to convert between various subscription format

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] filter_script不按预期工作,结果不正常

jacobin opened this issue · comments

确认版本最新

  • 我已经确认在最新Action编译的版本中复现

检索issue

  • 我已经确认之前没有issue涉及此BUG

subconverter版本

v0.8.1 win64版

转换过程

多地址/多点/多格式合并转换为clash

转换设置

将如下js进行urlencode之后代入filter_script=

function filter(node) {
    if(node.Type.toLowerCase() === "ss" && node.EncryptMethod.toLowerCase() === "chacha20-poly1305") {
        return false;
    }
    return true;
}

结果是,预期中将被过滤去的节点譬如如下

 ...
proxies:
   ...
 - {name: 英国-1.77MB/s, server: series-a2-me.samanehha.co, port: 443, type: ss, cipher: chacha20-poly1305, password: Bog0ELmMM9DSxDdQ, udp: true}
    ...

还大剌剌的存在着

复现步骤

见“转换设置”

期望结果

类型为ss节点加密方法为chacha20-poly1305的节点不该留下

实际结果

类型为ss节点加密方法为chacha20-poly1305的节点还是出现了

错误信息

No response