diff --git a/ipn/ipnlocal/peerapi.go b/ipn/ipnlocal/peerapi.go index aa4e4f32e..c81848100 100644 --- a/ipn/ipnlocal/peerapi.go +++ b/ipn/ipnlocal/peerapi.go @@ -818,6 +818,10 @@ func (f *incomingFile) PartialFile() ipn.PartialFile { // canPutFile reports whether h can put a file ("Taildrop") to this node. func (h *peerAPIHandler) canPutFile() bool { + if h.peerNode.UnsignedPeerAPIOnly { + // Unsigned peers can't send files. + return false + } return h.isSelf || h.peerHasCap(tailcfg.CapabilityFileSharingSend) } @@ -828,6 +832,10 @@ func (h *peerAPIHandler) canDebug() bool { // This node does not expose debug info. return false } + if h.peerNode.UnsignedPeerAPIOnly { + // Unsigned peers can't debug. + return false + } return h.isSelf || h.peerHasCap(tailcfg.CapabilityDebugPeer) }