Skip to content

Commit

Permalink
feat: add support for 'hy2' alias in Hysteria2Parser case(#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
7Sageer committed Nov 27, 2024
1 parent afc9f4a commit f189547
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/ProxyParsers.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ export class ProxyParser {
case 'ss': return new ShadowsocksParser().parse(url);
case 'vmess': return new VmessParser().parse(url);
case 'vless': return new VlessParser().parse(url);
case 'hysteria2': return new Hysteria2Parser().parse(url);
case 'hysteria2':
case 'hy2':
return new Hysteria2Parser().parse(url);
case 'http':
case 'https':
return HttpParser.parse(url);
return HttpParser.parse(url);
case 'trojan': return new TrojanParser().parse(url);
case 'tuic': return new TuicParser().parse(url);
}
Expand Down

0 comments on commit f189547

Please sign in to comment.