MCPcopy Index your code
hub / github.com/tailscale/tailscale / SendUpdate

Method SendUpdate

control/controlclient/direct.go:1010–1012  ·  view source on GitHub ↗

SendUpdate makes a /map request to update the server of our latest state, but does not fetch anything. It returns an error if the server did not return a successful 200 OK response.

(ctx context.Context)

Source from the content-addressed store, hash-verified

1008// does not fetch anything. It returns an error if the server did not return a
1009// successful 200 OK response.
1010func (c *Direct) SendUpdate(ctx context.Context) error {
1011 return c.sendMapRequest(ctx, false, nil)
1012}
1013
1014// SetDiscoPublicKey updates the disco public key in local state.
1015// It does not implicitly trigger [SendUpdate]; callers should arrange for that.

Callers 1

updateRoutineMethod · 0.80

Calls 1

sendMapRequestMethod · 0.95

Tested by

no test coverage detected