mirror of
https://github.com/nitezs/sub2clash.git
synced 2024-12-23 21:34:41 -05:00
feat: 增加 Hysteria 节点支持
This commit is contained in:
parent
68269fd499
commit
fd7c460f95
@ -15,6 +15,7 @@
|
||||
- Vmess
|
||||
- Vless (Clash.Meta)
|
||||
- Trojan
|
||||
- Hysteria (Clash.Meta)
|
||||
- Hysteria2 (Clash.Meta)
|
||||
|
||||
## 使用
|
||||
|
@ -23,6 +23,7 @@ func GetSupportProxyTypes(clashType ClashType) map[string]bool {
|
||||
"vmess": true,
|
||||
"trojan": true,
|
||||
"vless": true,
|
||||
"hysteria": true,
|
||||
"hysteria2": true,
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user