mirror of
https://github.com/juanfont/headscale.git
synced 2024-12-20 19:09:07 +01:00
set hostinfo,ipv* columns explicitly (#2165)
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
This commit is contained in:
parent
218138afee
commit
e16ea2ee69
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user