From e16ea2ee6995667ce7db872ad353f8b31146c80c Mon Sep 17 00:00:00 2001 From: Kristoffer Dalby Date: Wed, 2 Oct 2024 18:12:25 +0200 Subject: [PATCH] set hostinfo,ipv* columns explicitly (#2165) Signed-off-by: Kristoffer Dalby --- hscontrol/types/node.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hscontrol/types/node.go b/hscontrol/types/node.go index 6e6fd9a5..c702f23a 100644 --- a/hscontrol/types/node.go +++ b/hscontrol/types/node.go @@ -54,10 +54,10 @@ type Node struct { Endpoints []netip.AddrPort `gorm:"serializer:json"` - Hostinfo *tailcfg.Hostinfo `gorm:"serializer:json"` + Hostinfo *tailcfg.Hostinfo `gorm:"column:host_info;serializer:json"` - IPv4 *netip.Addr `gorm:"serializer:text"` - IPv6 *netip.Addr `gorm:"serializer:text"` + IPv4 *netip.Addr `gorm:"column:ipv4;serializer:text"` + IPv6 *netip.Addr `gorm:"column:ipv6;serializer:text"` // Hostname represents the name given by the Tailscale // client during registration