Fix hy2 mport parsing compatibility
This commit is contained in:
+1
-1
@@ -267,7 +267,7 @@ func hy2(u *url.URL, i int) (*map[string]interface{}, string, error) {
|
|||||||
down, _ := strconv.Atoi(query.Get("downmbps"))
|
down, _ := strconv.Atoi(query.Get("downmbps"))
|
||||||
up, _ := strconv.Atoi(query.Get("upmbps"))
|
up, _ := strconv.Atoi(query.Get("upmbps"))
|
||||||
obfs := query.Get("obfs")
|
obfs := query.Get("obfs")
|
||||||
mport := query.Get("mport")
|
mport := strings.ReplaceAll(query.Get("mport"), "-", ":")
|
||||||
fastopen := query.Get("fastopen")
|
fastopen := query.Get("fastopen")
|
||||||
if down > 0 {
|
if down > 0 {
|
||||||
hy2["down_mbps"] = down
|
hy2["down_mbps"] = down
|
||||||
|
|||||||
Reference in New Issue
Block a user