From f74146648efbc2c82494ac2b0f1e9694d49c1e4f Mon Sep 17 00:00:00 2001 From: Shtorm <108103062+shtorm-7@users.noreply.github.com> Date: Tue, 11 Aug 2026 23:30:42 +0300 Subject: [PATCH] Fix xhttp link parsing --- parser/link/vless.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/parser/link/vless.go b/parser/link/vless.go index aa558235..f1833669 100644 --- a/parser/link/vless.go +++ b/parser/link/vless.go @@ -70,9 +70,10 @@ func parseVLESSLink(link string) (option.Outbound, error) { case "xhttp": Transport.Type = C.V2RayTransportTypeXHTTP if alpn, exists := proxy["alpn"]; exists && alpn != "" { - TLSOptions.ALPN = []string{alpn} + TLSOptions.ALPN = strings.Split(alpn, ",") + } else { + TLSOptions.ALPN = []string{"h2", "http/1.1"} } - TLSOptions.ALPN = []string{"h2", "http/1.1"} if host, exists := proxy["host"]; exists && host != "" { Transport.XHTTPOptions.Host = host }