Skip to content

Commit

Permalink
fix(proxy): fixes #174
Browse files Browse the repository at this point in the history
  • Loading branch information
kunish committed Sep 7, 2023
1 parent 8242706 commit c0b0489
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/helpers/proxies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit c0b0489

Please sign in to comment.