mirror of
https://github.com/netbirdio/netbird.git
synced 2026-07-16 11:39:57 +00: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 string `json:"-" gorm:"index"`
|
||||
// WireGuard public key
|
||||
Key string // uniqueness index (check migrations)
|
||||
Key string `gorm:"size:255;uniqueIndex"`
|
||||
// IP address of the Peer
|
||||
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.
|
||||
|
||||
Reference in New Issue
Block a user