diff --git a/common/serial/bytes.go b/common/serial/bytes.go index 002b69576..14c7676cc 100644 --- a/common/serial/bytes.go +++ b/common/serial/bytes.go @@ -20,6 +20,7 @@ func BytesToUint32(value []byte) uint32 { uint32(value[3]) } +// BytesToInt deserializes a bytes array (of at leat 4 bytes) to an int in big endian order. func BytesToInt(value []byte) int { return int(value[0])<<24 | int(value[1])<<16 | diff --git a/core.go b/core.go index 0f92376af..bc87ab237 100644 --- a/core.go +++ b/core.go @@ -18,7 +18,7 @@ import ( ) var ( - version = "2.35" + version = "2.36" build = "Custom" codename = "One for all" intro = "An unified platform for anti-censorship."