Skip to content

Commit

Permalink
chore: fix some comments (#2069)
Browse files Browse the repository at this point in the history
  • Loading branch information
curlwget authored Sep 9, 2024
1 parent c3b260a commit 99f18f9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hscontrol/mapper/mapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ func (m *Mapper) FullMapResponse(
return m.marshalMapResponse(mapRequest, resp, node, mapRequest.Compress, messages...)
}

// ReadOnlyResponse returns a MapResponse for the given node.
// ReadOnlyMapResponse returns a MapResponse for the given node.
// Lite means that the peers has been omitted, this is intended
// to be used to answer MapRequests with OmitPeers set to true.
func (m *Mapper) ReadOnlyMapResponse(
Expand Down Expand Up @@ -552,7 +552,7 @@ func appendPeerChanges(
}

// If there are filter rules present, see if there are any nodes that cannot
// access eachother at all and remove them from the peers.
// access each-other at all and remove them from the peers.
if len(packetFilter) > 0 {
changed = policy.FilterNodesByACL(node, changed, packetFilter)
}
Expand Down Expand Up @@ -596,7 +596,7 @@ func appendPeerChanges(
} else {
// This is a hack to avoid sending an empty list of packet filters.
// Since tailcfg.PacketFilter has omitempty, any empty PacketFilter will
// be omitted, causing the client to consider it unchange, keeping the
// be omitted, causing the client to consider it unchanged, keeping the
// previous packet filter. Worst case, this can cause a node that previously
// has access to a node to _not_ loose access if an empty (allow none) is sent.
reduced := policy.ReduceFilterRules(node, packetFilter)
Expand Down

0 comments on commit 99f18f9

Please sign in to comment.