From 787a1625ad02463e5a91666ad8807c8b26778ed5 Mon Sep 17 00:00:00 2001 From: Fran Bull Date: Mon, 17 Mar 2025 09:06:46 -0700 Subject: [PATCH] use addslice --- tsconsensus/authorization.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tsconsensus/authorization.go b/tsconsensus/authorization.go index 83ddb56d7..4fc8bb182 100644 --- a/tsconsensus/authorization.go +++ b/tsconsensus/authorization.go @@ -131,9 +131,7 @@ func newPeers(status *ipnstate.Status, tag string) *peers { for _, p := range status.Peer { if p.Tags != nil && views.SliceContains(*p.Tags, tag) { ps.allowedPeers = append(ps.allowedPeers, p) - for _, addr := range p.TailscaleIPs { - ps.allowedRemoteAddrs.Add(addr) - } + ps.allowedRemoteAddrs.AddSlice(p.TailscaleIPs) } } return ps