mirror of
https://github.com/Sagit-chu/flvx.git
synced 2026-10-04 01:06:36 +08:00
fix(gost): ensure JSON floats are correctly converted in GetInt and remove accidental binary
This commit is contained in:
@@ -0,0 +1,5 @@
|
|||||||
|
gost
|
||||||
|
gost_*
|
||||||
|
gost-*
|
||||||
|
*.sha256
|
||||||
|
*.exe
|
||||||
Binary file not shown.
@@ -60,6 +60,8 @@ func GetInt(md metadata.Metadata, keys ...string) (v int) {
|
|||||||
}
|
}
|
||||||
case int:
|
case int:
|
||||||
v = vv
|
v = vv
|
||||||
|
case float64:
|
||||||
|
v = int(vv)
|
||||||
case string:
|
case string:
|
||||||
v, _ = strconv.Atoi(vv)
|
v, _ = strconv.Atoi(vv)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user