mirror of
https://github.com/netbirdio/netbird.git
synced 2026-09-28 17:49:08 +02:00
define key length for peer key
This commit is contained in:
@@ -25,7 +25,7 @@ type Peer struct {
|
|||||||
// AccountID is a reference to Account that this object belongs
|
// AccountID is a reference to Account that this object belongs
|
||||||
AccountID string `json:"-" gorm:"index"`
|
AccountID string `json:"-" gorm:"index"`
|
||||||
// WireGuard public key
|
// WireGuard public key
|
||||||
Key string // uniqueness index (check migrations)
|
Key string `gorm:"size:255;uniqueIndex"`
|
||||||
// IP address of the Peer
|
// IP address of the Peer
|
||||||
IP netip.Addr `gorm:"serializer:json"` // uniqueness index per accountID (check migrations)
|
IP netip.Addr `gorm:"serializer:json"` // uniqueness index per accountID (check migrations)
|
||||||
// IPv6 overlay address of the Peer, zero value if IPv6 is not enabled for the account.
|
// IPv6 overlay address of the Peer, zero value if IPv6 is not enabled for the account.
|
||||||
|
|||||||
Reference in New Issue
Block a user