chore: Format hysteria2 as hy2. (#925)

This commit is contained in:
Plutonium141 2024-08-20 09:44:35 +08:00 committed by GitHub
parent 51a88b506c
commit 87867a4ac7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -8,8 +8,8 @@ export const formatProxyType = (type = '') => {
return t.replace('shadowsocks', 'ss') // for both ss and ssr
}
if (t === 'hysteria') {
return 'hy'
if (t.includes('hysteria')) {
return t.replace('hysteria', 'hy')
}
if (t === 'wireguard') {