Migrate serializer:gob fields to serializer:json (#1855)

This commit is contained in:
Viktor Liu
2024-04-18 18:14:21 +02:00
committed by GitHub
parent e3b76448f3
commit 77488ad11a
6 changed files with 290 additions and 4 deletions

View File

@@ -36,7 +36,7 @@ type NetworkMap struct {
type Network struct {
Identifier string `json:"id"`
Net net.IPNet `gorm:"serializer:gob"`
Net net.IPNet `gorm:"serializer:json"`
Dns string
// Serial is an ID that increments by 1 when any change to the network happened (e.g. new peer has been added).
// Used to synchronize state to the client apps.