diff --git a/README.md b/README.md index 39f0f6d..9bdbdc1 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,7 @@ - Vmess - Vless (Clash.Meta) - Trojan + - Hysteria (Clash.Meta) - Hysteria2 (Clash.Meta) ## 使用 diff --git a/model/clash.go b/model/clash.go index 308f6a3..5159709 100644 --- a/model/clash.go +++ b/model/clash.go @@ -23,6 +23,7 @@ func GetSupportProxyTypes(clashType ClashType) map[string]bool { "vmess": true, "trojan": true, "vless": true, + "hysteria": true, "hysteria2": true, } } diff --git a/model/proxy.go b/model/proxy.go index c1e6e8d..caed364 100644 --- a/model/proxy.go +++ b/model/proxy.go @@ -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 }