From ae4581d17b75a0dbc3a30642742ffbc3dc43a5ce Mon Sep 17 00:00:00 2001 From: cola-prince Date: Sat, 21 Mar 2026 14:40:50 +0800 Subject: [PATCH] Fix hy2 mport parsing compatibility --- util/linkToJson.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/linkToJson.go b/util/linkToJson.go index 1571708..4c71d3a 100644 --- a/util/linkToJson.go +++ b/util/linkToJson.go @@ -267,7 +267,7 @@ func hy2(u *url.URL, i int) (*map[string]interface{}, string, error) { down, _ := strconv.Atoi(query.Get("downmbps")) up, _ := strconv.Atoi(query.Get("upmbps")) obfs := query.Get("obfs") - mport := query.Get("mport") + mport := strings.ReplaceAll(query.Get("mport"), "-", ":") fastopen := query.Get("fastopen") if down > 0 { hy2["down_mbps"] = down