mirror of
https://github.com/tailscale/tailscale.git
synced 2025-08-21 10:27:30 +00:00
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:

committed by
Josh Bleecher Snyder

parent
bb93e29d5c
commit
8c3c5e80b7
@@ -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.
|
||||
|
Reference in New Issue
Block a user