From fd7c460f95f9c3280df85798e4a21af6ace6c5e6 Mon Sep 17 00:00:00 2001 From: nite07 Date: Sat, 9 Mar 2024 17:17:57 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=20Hysteria=20?= =?UTF-8?q?=E8=8A=82=E7=82=B9=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 1 + model/clash.go | 1 + model/proxy.go | 2 ++ 3 files changed, 4 insertions(+) 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 }