fix deletion of exit routes without nodes (#2286)
Fixes #2259 Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
This commit is contained in:
parent
76d26a7eec
commit
58d089ce0a
3 changed files with 56 additions and 50 deletions
|
@ -14,7 +14,7 @@ type Route struct {
|
|||
gorm.Model
|
||||
|
||||
NodeID uint64
|
||||
Node Node
|
||||
Node *Node
|
||||
|
||||
// TODO(kradalby): change this custom type to netip.Prefix
|
||||
Prefix netip.Prefix `gorm:"serializer:text"`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue