diff options
| author | Fran Bull <fran@tailscale.com> | 2025-02-27 10:00:57 -0800 |
|---|---|---|
| committer | Fran Bull <fran@tailscale.com> | 2025-02-27 13:43:56 -0800 |
| commit | 27b69ca97b07bbda6230694f8001cc99e19b90b7 (patch) | |
| tree | 427a6ed2880022e5a204f6737595bbe724daf693 | |
| parent | ea684a5ed595279c9a8fdedd60f7a3f4a52523b7 (diff) | |
| download | tailscale-fran/franwip3.tar.xz tailscale-fran/franwip3.zip | |
| -rw-r--r-- | tsconsensus/authorization.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tsconsensus/authorization.go b/tsconsensus/authorization.go index 43a25b120..19ccead53 100644 --- a/tsconsensus/authorization.go +++ b/tsconsensus/authorization.go @@ -134,7 +134,9 @@ func newPeers(status *ipnstate.Status, tag string) *peers { return s == tag }) { ps.allowedPeers = append(ps.allowedPeers, p) - for _, addr := range p.TailscaleIPs { + //for _, addr := range p.TailscaleIPs { + for _, pfx := range p.AllowedIPs.All() { // TODO not this! switch back + addr := pfx.Addr() ps.allowedRemoteAddrs.Add(addr) } } |
