From 87867a4ac730dc878e795884996cb2e5f10344fa Mon Sep 17 00:00:00 2001 From: Plutonium141 <62324696+Plutonium141@users.noreply.github.com> Date: Tue, 20 Aug 2024 09:44:35 +0800 Subject: [PATCH] chore: Format `hysteria2` as `hy2`. (#925) --- src/helpers/proxies.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/helpers/proxies.ts b/src/helpers/proxies.ts index a25cac3..1776a65 100644 --- a/src/helpers/proxies.ts +++ b/src/helpers/proxies.ts @@ -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') {