fix deletion of exit routes without nodes (#2286)

Fixes #2259

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
This commit is contained in:
Kristoffer Dalby 2024-12-13 19:15:24 +00:00 committed by GitHub
parent 76d26a7eec
commit 58d089ce0a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 56 additions and 50 deletions

View file

@ -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"`