[PR #3043] [MERGED] Don't remove handlers from mux if still in use #21290

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

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/3043
Author: @lixmal
Created: 12/13/2024
Status: Merged
Merged: 12/13/2024
Merged by: @lixmal

Base: dns-interceptorHead: dns-interceptor-preserve-on-remove


📝 Commits (3)

📊 Changes

6 files changed (+246 additions, -30 deletions)

View changed files

📝 client/internal/dns/handler_chain.go (+34 -3)
📝 client/internal/dns/handler_chain_test.go (+171 -0)
📝 client/internal/dns/mock_server.go (+3 -3)
📝 client/internal/dns/server.go (+33 -21)
📝 client/internal/dns/server_test.go (+4 -2)
📝 client/internal/routemanager/dnsinterceptor/handler.go (+1 -1)

📄 Description

Describe your changes

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/3043 **Author:** [@lixmal](https://github.com/lixmal) **Created:** 12/13/2024 **Status:** ✅ Merged **Merged:** 12/13/2024 **Merged by:** [@lixmal](https://github.com/lixmal) **Base:** `dns-interceptor` ← **Head:** `dns-interceptor-preserve-on-remove` --- ### 📝 Commits (3) - [`5508ffe`](https://github.com/netbirdio/netbird/commit/5508ffe4cefb8bd1ab711d2af2def404fe9e5a66) Don't remove handlers from mux if still in use - [`157046f`](https://github.com/netbirdio/netbird/commit/157046f8994ace005675218bc0d0e8522bc7ec50) Fix deadlock - [`48e388f`](https://github.com/netbirdio/netbird/commit/48e388f2d7e5d74d29be5f6d445ecebdca5160c5) Fix tests ### 📊 Changes **6 files changed** (+246 additions, -30 deletions) <details> <summary>View changed files</summary> 📝 `client/internal/dns/handler_chain.go` (+34 -3) 📝 `client/internal/dns/handler_chain_test.go` (+171 -0) 📝 `client/internal/dns/mock_server.go` (+3 -3) 📝 `client/internal/dns/server.go` (+33 -21) 📝 `client/internal/dns/server_test.go` (+4 -2) 📝 `client/internal/routemanager/dnsinterceptor/handler.go` (+1 -1) </details> ### 📄 Description ## Describe your changes ## Issue ticket number and link ### 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 --- <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 05:08:19 -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#21290