Merge pull request #1065 from cola-prince/fix-hy2-mport-compat

Fix hy2 mport format when generating JSON
This commit is contained in:
Alireza Ahmadi
2026-03-22 20:25:27 +01:00
committed by GitHub
+1 -1
View File
@@ -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