Skip to content

Commit

Permalink
fix: clash 规则不输出 ssr 节点名
Browse files Browse the repository at this point in the history
  • Loading branch information
geekdada committed Oct 9, 2019
1 parent c8885df commit 7360c7b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,7 @@ export const getClashNodeNames = (
ruleName: string,
ruleType: 'select' | 'url-test',
nodeNameList: ReadonlyArray<SimpleNodeConfig>,
nodeTypeList: ReadonlyArray<NodeTypeEnum> = [NodeTypeEnum.Shadowsocks],
nodeTypeList: ReadonlyArray<NodeTypeEnum> = [NodeTypeEnum.Shadowsocks, NodeTypeEnum.Shadowsocksr, NodeTypeEnum.Vmess],
filter?: NodeNameFilterType
): {
readonly type: string;
Expand Down Expand Up @@ -876,13 +876,15 @@ export const normalizeClashProxyGroupConfig = (
if (item.filter) {
return getClashNodeNames(item.name, item.type, nodeList, [
NodeTypeEnum.Shadowsocks,
NodeTypeEnum.Shadowsocksr,
NodeTypeEnum.Vmess,
], item.filter);
} else if (item.proxies) {
return item;
} else {
return getClashNodeNames(item.name, item.type, nodeList, [
NodeTypeEnum.Shadowsocks,
NodeTypeEnum.Shadowsocksr,
NodeTypeEnum.Vmess,
]);
}
Expand Down

0 comments on commit 7360c7b

Please sign in to comment.