fix: Fix connection interface binding, JSON lease DB

This commit is contained in:
Adrian Rumpold
2024-01-09 12:23:41 +01:00
parent cb8b6c03b6
commit ac7185bfb5
8 changed files with 277 additions and 75 deletions

11
pkg/util/util.go Normal file
View File

@@ -0,0 +1,11 @@
package util
import (
"encoding/binary"
)
func U32ToByte(u uint32) []byte {
buf := make([]byte, 4)
binary.BigEndian.PutUint32(buf, u)
return buf
}