From e982a66c01de07406073835b975f8528fcad4ecb Mon Sep 17 00:00:00 2001 From: Fran Bull Date: Thu, 12 Nov 2026 12:11:56 -0800 Subject: [PATCH] ipn/ipnstate,tailcfg: fix comment The comment should refer to dbx.Node.IsRouter, not dbx.Node.IsSubnetRouter. Updates #cleanup Signed-off-by: Fran Bull --- ipn/ipnstate/ipnstate.go | 2 +- tailcfg/tailcfg.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ipn/ipnstate/ipnstate.go b/ipn/ipnstate/ipnstate.go index c715785db..ba0447fdd 100644 --- a/ipn/ipnstate/ipnstate.go +++ b/ipn/ipnstate/ipnstate.go @@ -370,7 +370,7 @@ func (ps *PeerStatus) HasCap(cap nodecap.Cap) bool { // Examples: an exit node, a subnet router, an app connector, etc. // It is the analogue of [tailcfg.Node.IsRouter]. func (ps *PeerStatus) IsRouter() bool { - // TODO(sfllaw): Keep this aligned with dbx.Node.IsSubnetRouter. + // TODO(sfllaw): Keep this aligned with dbx.Node.IsRouter. if ps.AllowedIPs == nil { return false } diff --git a/tailcfg/tailcfg.go b/tailcfg/tailcfg.go index 6ebde28e9..6d3e741fe 100644 --- a/tailcfg/tailcfg.go +++ b/tailcfg/tailcfg.go @@ -624,7 +624,7 @@ func (n *Node) DisplayNames(forOwner bool) (name, hostIfDifferent string) { // IsRouter reports whether n is a router: it routes addresses besides its own. // Examples: an exit node, a subnet router, an app connector, etc. func (n *Node) IsRouter() bool { - // TODO(sfllaw): Keep this aligned with dbx.Node.IsSubnetRouter. + // TODO(sfllaw): Keep this aligned with dbx.Node.IsRouter. for _, r := range n.AllowedIPs { if !slices.Contains(n.Addresses, r) { return true