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

Struct peerAPIHandler

feature/taildrop/peerapi_test.go:31–37  ·  view source on GitHub ↗

peerAPIHandler serves the PeerAPI for a source specific client.

Source from the content-addressed store, hash-verified

29
30// peerAPIHandler serves the PeerAPI for a source specific client.
31type peerAPIHandler struct {
32 remoteAddr netip.AddrPort
33 isSelf bool // whether peerNode is owned by same user as this node
34 selfNode tailcfg.NodeView // this node; always non-nil
35 peerNode tailcfg.NodeView // peerNode is who's making the request
36 canDebug bool // whether peerNode can debug this node (goroutines, metrics, magicsock internal state, etc)
37}
38
39func (h *peerAPIHandler) IsSelfUntagged() bool {
40 return !h.selfNode.IsTagged() && !h.peerNode.IsTagged() && h.isSelf

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected