1
0
mirror of https://github.com/nitezs/sub2clash.git synced 2024-12-23 15:24:42 -05:00

feat: 增加 Hysteria 节点支持

This commit is contained in:
Nite07 2024-03-09 17:17:57 +08:00
parent 68269fd499
commit fd7c460f95
3 changed files with 4 additions and 0 deletions

View File

@ -15,6 +15,7 @@
- Vmess
- Vless Clash.Meta
- Trojan
- Hysteria Clash.Meta
- Hysteria2 Clash.Meta
## 使用

View File

@ -23,6 +23,7 @@ func GetSupportProxyTypes(clashType ClashType) map[string]bool {
"vmess": true,
"trojan": true,
"vless": true,
"hysteria": true,
"hysteria2": true,
}
}

View File

@ -70,6 +70,8 @@ func (p Proxy) MarshalYAML() (interface{}, error) {
return ProxyToVless(p), nil
case "trojan":
return ProxyToTrojan(p), nil
case "hysteria":
return ProxyToHysteria(p), nil
case "hysteria2":
return ProxyToHysteria2(p), nil
}