1
0
mirror of https://github.com/nitezs/sub2clash.git synced 2024-12-24 11:14:41 -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 - Vmess
- Vless Clash.Meta - Vless Clash.Meta
- Trojan - Trojan
- Hysteria Clash.Meta
- Hysteria2 Clash.Meta - Hysteria2 Clash.Meta
## 使用 ## 使用

View File

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

View File

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