Skip to content

Commit

Permalink
feat: add support for clashr
Browse files Browse the repository at this point in the history
  • Loading branch information
geekdada committed Oct 8, 2019
1 parent a1f9e0f commit 43c4862
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions lib/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.`);
Expand Down

0 comments on commit 43c4862

Please sign in to comment.