From 6106adc6a58ac2e416ea4b52d2d55304031fcd84 Mon Sep 17 00:00:00 2001 From: metacubex Date: Thu, 27 Oct 2022 18:37:27 +0800 Subject: [PATCH] fix: hysteria converter --- common/convert/converter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/convert/converter.go b/common/convert/converter.go index 07bff155f..238e241b1 100644 --- a/common/convert/converter.go +++ b/common/convert/converter.go @@ -47,7 +47,7 @@ func ConvertsV2Ray(buf []byte) ([]map[string]any, error) { hysteria["port"] = urlHysteria.Port() hysteria["sni"] = query.Get("peer") hysteria["obfs"] = query.Get("obfs") - hysteria["alpn"] = query.Get("alpn") + hysteria["alpn"] = []string{query.Get("alpn")} hysteria["auth_str"] = query.Get("auth") hysteria["protocol"] = query.Get("protocol") up := query.Get("up")