mirror of
https://github.com/juanfont/headscale.git
synced 2024-11-26 08:53:05 +00:00
set hostinfo,ipv* columns explicitly (#2165)
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
This commit is contained in:
parent
218138afee
commit
e16ea2ee69
1 changed files with 3 additions and 3 deletions
|
@ -54,10 +54,10 @@ type Node struct {
|
||||||
|
|
||||||
Endpoints []netip.AddrPort `gorm:"serializer:json"`
|
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"`
|
IPv4 *netip.Addr `gorm:"column:ipv4;serializer:text"`
|
||||||
IPv6 *netip.Addr `gorm:"serializer:text"`
|
IPv6 *netip.Addr `gorm:"column:ipv6;serializer:text"`
|
||||||
|
|
||||||
// Hostname represents the name given by the Tailscale
|
// Hostname represents the name given by the Tailscale
|
||||||
// client during registration
|
// client during registration
|
||||||
|
|
Loading…
Reference in a new issue