Skip to content

Commit f189547

Browse files
committed
feat: add support for 'hy2' alias in Hysteria2Parser case(#61)
1 parent afc9f4a commit f189547

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/ProxyParsers.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,12 @@ export class ProxyParser {
99
case 'ss': return new ShadowsocksParser().parse(url);
1010
case 'vmess': return new VmessParser().parse(url);
1111
case 'vless': return new VlessParser().parse(url);
12-
case 'hysteria2': return new Hysteria2Parser().parse(url);
12+
case 'hysteria2':
13+
case 'hy2':
14+
return new Hysteria2Parser().parse(url);
1315
case 'http':
1416
case 'https':
15-
return HttpParser.parse(url);
17+
return HttpParser.parse(url);
1618
case 'trojan': return new TrojanParser().parse(url);
1719
case 'tuic': return new TuicParser().parse(url);
1820
}

0 commit comments

Comments
 (0)