From 43c486277bdff42999f18a71a4627585461e4762 Mon Sep 17 00:00:00 2001 From: Roy Li Date: Tue, 8 Oct 2019 16:53:37 +0800 Subject: [PATCH] feat: add support for clashr --- lib/utils/index.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/lib/utils/index.ts b/lib/utils/index.ts index 2adff8d46..1a55d5e05 100644 --- a/lib/utils/index.ts +++ b/lib/utils/index.ts @@ -499,6 +499,20 @@ export const getClashNodes = ( } : null), }; + case NodeTypeEnum.Shadowsocksr: + return { + type: 'ssr', + name: nodeConfig.nodeName, + server: nodeConfig.hostname, + port: nodeConfig.port, + password: nodeConfig.password, + obfs: nodeConfig.obfs, + obfsparam: nodeConfig.obfsparam, + protocol: nodeConfig.protocol, + protocolparam: nodeConfig.protoparam, + cipher: nodeConfig.method, + }; + // istanbul ignore next default: console.info(`${nodeConfig.type} is not supported yet, ${nodeConfig.nodeName} will be ignored.`);