diff options
| author | Chris Palmer <cpalmer@tailscale.com> | 2023-07-28 13:57:13 -0700 |
|---|---|---|
| committer | Chris Palmer <cpalmer@tailscale.com> | 2023-07-28 13:57:13 -0700 |
| commit | 3a89671c050c949300d6cf0aa668ada29e241e95 (patch) | |
| tree | 04ac8bcbbb95bc2a58250a30a8e3516820ce2e95 | |
| parent | 879c8bd9e2027630ff0a55ed7f15470042132e7f (diff) | |
| download | tailscale-noncombatant/large-int-string.tar.xz tailscale-noncombatant/large-int-string.zip | |
cli: print large ints as stringsnoncombatant/large-int-string
JS/JSON integers are 64-bit floats, so only 53 bits of int are really available.
Print large ints as strings so that they don't get truncated or otherwise
mangled.
Fixes #7576
Signed-off-by: Chris Palmer <cpalmer@tailscale.com>
| -rw-r--r-- | ipn/ipnstate/ipnstate.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ipn/ipnstate/ipnstate.go b/ipn/ipnstate/ipnstate.go index 1d1d28b6c..85bb392e8 100644 --- a/ipn/ipnstate/ipnstate.go +++ b/ipn/ipnstate/ipnstate.go @@ -197,7 +197,7 @@ type PeerStatus struct { // It has the form "host.<MagicDNSSuffix>." DNSName string OS string // HostInfo.OS - UserID tailcfg.UserID + UserID tailcfg.UserID `json:",string"` // TailscaleIPs are the IP addresses assigned to the node. TailscaleIPs []netip.Addr |
