mirror of
https://github.com/netbirdio/netbird.git
synced 2024-11-07 16:54:16 +01:00
use correct serializer
This commit is contained in:
parent
59cf4cd97b
commit
820ea80e68
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user