MCPcopy
hub / github.com/tailscale/tailscale / AddRawMapResponse

Method AddRawMapResponse

tstest/integration/testcontrol/testcontrol.go:300–302  ·  view source on GitHub ↗

AddRawMapResponse delivers the raw MapResponse mr to nodeKeyDst. It's meant for testing incremental map updates. Once AddRawMapResponse has been sent to a node, all future automatic MapResponses to that node will be suppressed and only explicit MapResponses injected via AddRawMapResponse will be se

(nodeKeyDst key.NodePublic, mr *tailcfg.MapResponse)

Source from the content-addressed store, hash-verified

298// It reports whether the message was enqueued. That is, it reports whether
299// nodeKeyDst was connected.
300func (s *Server) AddRawMapResponse(nodeKeyDst key.NodePublic, mr *tailcfg.MapResponse) bool {
301 return s.addDebugMessage(nodeKeyDst, mr)
302}
303
304func (s *Server) addDebugMessage(nodeKeyDst key.NodePublic, msg any) bool {
305 s.mu.Lock()

Calls 1

addDebugMessageMethod · 0.95