fix(proxy): fixes #174

This commit is contained in:
kunish 2023-09-07 19:42:17 +08:00
parent 8242706290
commit c0b04892c8
No known key found for this signature in database
GPG Key ID: 647A12B4F782C430

View File

@ -9,10 +9,14 @@ export const formatTimeFromNow = (time: number | string) => {
export const formatProxyType = (type = '') => { export const formatProxyType = (type = '') => {
const t = type.toLowerCase() const t = type.toLowerCase()
if (t.includes('shadowsocks')) { if (t === 'shadowsocks') {
return 'ss' return 'ss'
} }
if (t === 'shadowsocksr') {
return 'ssr'
}
return t return t
} }