tailcfg: make MapResponse.ControlTime a pointer

Otherwise omitempty doesn't work.

This is wire-compatible with a non-pointer type, so switching
is safe, now and in the future.

Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
This commit is contained in:
Josh Bleecher Snyder
2022-02-18 10:14:14 -08:00
committed by Josh Bleecher Snyder
parent bb93e29d5c
commit 8c3c5e80b7
3 changed files with 4 additions and 3 deletions

View File

@@ -1297,7 +1297,7 @@ type MapResponse struct {
SSHPolicy *SSHPolicy `json:",omitempty"`
// ControlTime, if non-zero, is the current timestamp according to the control server.
ControlTime time.Time `json:",omitempty"`
ControlTime *time.Time `json:",omitempty"`
// Debug is normally nil, except for when the control server
// is setting debug settings on a node.