use correct serializer

This commit is contained in:
Maycon Santos 2024-03-10 06:19:31 +01:00
parent 59cf4cd97b
commit 820ea80e68

View File

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