Skip to content

Commit 2afa167

Browse files
committed
ipn/ipnlocal: disallow unsigned peers from WoL
Unsigned peers should not be allowed to generate Wake-on-Lan packets, only access Funnel. Updates tailscale#6934 Updates tailscale#7515 Updates tailscale#6475 Signed-off-by: James Tucker <james@tailscale.com>
1 parent 237b110 commit 2afa167

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ipn/ipnlocal/peerapi.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -903,6 +903,9 @@ func (h *peerAPIHandler) canDebug() bool {
903903

904904
// canWakeOnLAN reports whether h can send a Wake-on-LAN packet from this node.
905905
func (h *peerAPIHandler) canWakeOnLAN() bool {
906+
if h.peerNode.UnsignedPeerAPIOnly {
907+
return false
908+
}
906909
return h.isSelf || h.peerHasCap(tailcfg.CapabilityWakeOnLAN)
907910
}
908911

0 commit comments

Comments
 (0)