tailcfg: add MapResponse.ControlTime field

And log it when provided in map responses.

The test uses the date on which I joined Tailscale. :)

Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
This commit is contained in:
Josh Bleecher Snyder
2022-02-16 18:36:04 -08:00
committed by Josh Bleecher Snyder
parent 72d8672ef7
commit 8cf6d0a17b
4 changed files with 29 additions and 1 deletions

View File

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