From c0b04892c8a1eb93a8d8ac25c3c2d35da45c81e6 Mon Sep 17 00:00:00 2001 From: kunish Date: Thu, 7 Sep 2023 19:42:17 +0800 Subject: [PATCH] fix(proxy): fixes #174 --- src/helpers/proxies.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/helpers/proxies.ts b/src/helpers/proxies.ts index 369e964..10b1da0 100644 --- a/src/helpers/proxies.ts +++ b/src/helpers/proxies.ts @@ -9,10 +9,14 @@ export const formatTimeFromNow = (time: number | string) => { export const formatProxyType = (type = '') => { const t = type.toLowerCase() - if (t.includes('shadowsocks')) { + if (t === 'shadowsocks') { return 'ss' } + if (t === 'shadowsocksr') { + return 'ssr' + } + return t }