fix(gost): ensure JSON floats are correctly converted in GetInt and remove accidental binary

This commit is contained in:
sagitchu
2026-04-22 11:17:59 +08:00
parent 01b4c3e3eb
commit 2b2b417f91
3 changed files with 7 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
gost
gost_*
gost-*
*.sha256
*.exe
Binary file not shown.
+2
View File
@@ -60,6 +60,8 @@ func GetInt(md metadata.Metadata, keys ...string) (v int) {
}
case int:
v = vv
case float64:
v = int(vv)
case string:
v, _ = strconv.Atoi(vv)
}