Skip to content

Commit

Permalink
Serialize netip to json
Browse files Browse the repository at this point in the history
  • Loading branch information
pappz committed Feb 16, 2024
1 parent de8ce6f commit 5b6cb49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion management/server/peer/peer.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ type Location struct {

// NetworkAddress is the IP address with network and MAC address of a network interface
type NetworkAddress struct {
NetIP netip.Prefix
NetIP netip.Prefix `gorm:"serializer:json"`
Mac string
}

Expand Down

0 comments on commit 5b6cb49

Please sign in to comment.