peerAPIHandler serves the PeerAPI for a source specific client.
| 29 | |
| 30 | // peerAPIHandler serves the PeerAPI for a source specific client. |
| 31 | type 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 | |
| 39 | func (h *peerAPIHandler) IsSelfUntagged() bool { |
| 40 | return !h.selfNode.IsTagged() && !h.peerNode.IsTagged() && h.isSelf |
nothing calls this directly
no outgoing calls
no test coverage detected