Skip to content

Commit

Permalink
feat: clash 输出 vmess
Browse files Browse the repository at this point in the history
  • Loading branch information
geekdada committed Aug 26, 2019
1 parent e33d9a7 commit 05cc557
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions lib/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -554,11 +554,17 @@ export const normalizeClashProxyGroupConfig = (

return proxyGroup.map<any>(item => {
if (item.filter) {
return getClashNodeNames(item.name, item.type, nodeList, [NodeTypeEnum.Shadowsocks], item.filter);
return getClashNodeNames(item.name, item.type, nodeList, [
NodeTypeEnum.Shadowsocks,
NodeTypeEnum.Vmess,
], item.filter);
} else if (item.proxies) {
return item;
} else {
return getClashNodeNames(item.name, item.type, nodeList, [NodeTypeEnum.Shadowsocks]);
return getClashNodeNames(item.name, item.type, nodeList, [
NodeTypeEnum.Shadowsocks,
NodeTypeEnum.Vmess,
]);
}
});
};
Expand Down

0 comments on commit 05cc557

Please sign in to comment.