[PR #3797] [MERGED] Fix exclude list handling #23704

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

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/3797
Author: @pappz
Created: 5/6/2025
Status: Merged
Merged: 5/7/2025
Merged by: @pappz

Base: feature/lazy-connectionHead: feature/lazy-connection-fix-exclude-list


📝 Commits (1)

  • 0baee6d Fix exclude list handling

📊 Changes

2 files changed (+5 additions, -3 deletions)

View changed files

📝 client/internal/conn_mgr.go (+1 -0)
📝 client/internal/engine.go (+4 -3)

📄 Description

Describe your changes

This is a chicken-and-egg problem. The exclude list depends on the peer store. So we must fill the peer store, and because of it, the engine creates the lazy activity listeners. Just in the next step, when we update the exclude list, update the connection to permanent state.

Stack

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/3797 **Author:** [@pappz](https://github.com/pappz) **Created:** 5/6/2025 **Status:** ✅ Merged **Merged:** 5/7/2025 **Merged by:** [@pappz](https://github.com/pappz) **Base:** `feature/lazy-connection` ← **Head:** `feature/lazy-connection-fix-exclude-list` --- ### 📝 Commits (1) - [`0baee6d`](https://github.com/netbirdio/netbird/commit/0baee6d83253a33f7a73247b3ea152bd2174ffec) Fix exclude list handling ### 📊 Changes **2 files changed** (+5 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `client/internal/conn_mgr.go` (+1 -0) 📝 `client/internal/engine.go` (+4 -3) </details> ### 📄 Description ## Describe your changes This is a chicken-and-egg problem. The exclude list depends on the peer store. So we must fill the peer store, and because of it, the engine creates the lazy activity listeners. Just in the next step, when we update the exclude list, update the connection to permanent state. ## Issue ticket number and link ## Stack <!-- branch-stack --> ### 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 06:07:44 -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#23704