diff --git a/go-gost/.gitignore b/go-gost/.gitignore new file mode 100644 index 0000000..deb0653 --- /dev/null +++ b/go-gost/.gitignore @@ -0,0 +1,5 @@ +gost +gost_* +gost-* +*.sha256 +*.exe \ No newline at end of file diff --git a/go-gost/gost_linux_amd64 b/go-gost/gost_linux_amd64 deleted file mode 100755 index 7dd190d..0000000 Binary files a/go-gost/gost_linux_amd64 and /dev/null differ diff --git a/go-gost/x/metadata/util/util.go b/go-gost/x/metadata/util/util.go index 778adfc..84e7e6d 100644 --- a/go-gost/x/metadata/util/util.go +++ b/go-gost/x/metadata/util/util.go @@ -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) }