[PR #2099] [MERGED] Never skip removing allowed IPs #14665

Open
opened 2026-08-05 03:06:05 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/2099
Author: @lixmal
Created: 6/6/2024
Status: Merged
Merged: 6/6/2024
Merged by: @lixmal

Base: 0.28.0Head: fix/always-decrement-ref


📝 Commits (3)

  • ff136a9 Never skip removing allowed IP
  • fec9834 Improve already referenced allowed IPs used by different peers warning
  • 68dbe66 Add out meta to ref counter message

📊 Changes

4 files changed (+21 additions, -21 deletions)

View changed files

📝 client/internal/routemanager/client.go (+4 -13)
📝 client/internal/routemanager/dynamic/route.go (+1 -2)
📝 client/internal/routemanager/refcounter/refcounter.go (+4 -4)
📝 client/internal/routemanager/static/route.go (+12 -2)

📄 Description

Describe your changes

Removes the check about whether a peer is still connected before removing allowed IPs (= decreasing ref count to 0)

Fixes #2093

Checklist

  • Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)
  • Extended the README / documentation, if necessary

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbirdio/netbird/pull/2099 **Author:** [@lixmal](https://github.com/lixmal) **Created:** 6/6/2024 **Status:** ✅ Merged **Merged:** 6/6/2024 **Merged by:** [@lixmal](https://github.com/lixmal) **Base:** `0.28.0` ← **Head:** `fix/always-decrement-ref` --- ### 📝 Commits (3) - [`ff136a9`](https://github.com/netbirdio/netbird/commit/ff136a9b2daca9991874abf3a19b02027793457a) Never skip removing allowed IP - [`fec9834`](https://github.com/netbirdio/netbird/commit/fec9834c43153c4bf7bfeb76aa01c07e84bc5f0b) Improve already referenced allowed IPs used by different peers warning - [`68dbe66`](https://github.com/netbirdio/netbird/commit/68dbe6615603e9548c957ad9ffb28bc2a51c9dc4) Add out meta to ref counter message ### 📊 Changes **4 files changed** (+21 additions, -21 deletions) <details> <summary>View changed files</summary> 📝 `client/internal/routemanager/client.go` (+4 -13) 📝 `client/internal/routemanager/dynamic/route.go` (+1 -2) 📝 `client/internal/routemanager/refcounter/refcounter.go` (+4 -4) 📝 `client/internal/routemanager/static/route.go` (+12 -2) </details> ### 📄 Description ## Describe your changes Removes the check about whether a peer is still connected before removing allowed IPs (= decreasing ref count to 0) ## Issue ticket number and link Fixes #2093 ### Checklist - [x] Is it a bug fix - [ ] Is a typo/documentation fix - [ ] Is a feature enhancement - [ ] It is a refactor - [ ] Created tests that fail without the change (if possible) - [ ] Extended the README / documentation, if necessary --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
saavagebueno added the pull-request label 2026-08-05 03:06:05 -04:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#14665