mirror of
https://github.com/MetaCubeX/metacubexd.git
synced 2024-12-28 07:54:13 +08:00
fix(proxy): fixes #174
This commit is contained in:
parent
8242706290
commit
c0b04892c8
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user