[PR #2676] [MERGED] [client] Check wginterface instead of engine ctx #15456

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

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/2676
Author: @hurricanehrndz
Created: 9/30/2024
Status: Merged
Merged: 10/4/2024
Merged by: @lixmal

Base: mainHead: check_wginterface_instead_of_engine_ctx


📝 Commits (5)

  • c21cd41 Give more time to restart engine
  • 24747fd wgInterface must be nil before creating new engine
  • 96bb46e Make wgInterface nil after engineCtx cancelled
  • 281a32e Stop routeManager before removing peers
  • c1c710c Check if dnsServer is not nil

📊 Changes

2 files changed (+23 additions, -18 deletions)

View changed files

📝 client/internal/connect.go (+9 -6)
📝 client/internal/engine.go (+14 -12)

📄 Description

Describe your changes

Tweaking logic at connect to ensure wgInterface doesn't exist before starting a new engine #2196

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/2676 **Author:** [@hurricanehrndz](https://github.com/hurricanehrndz) **Created:** 9/30/2024 **Status:** ✅ Merged **Merged:** 10/4/2024 **Merged by:** [@lixmal](https://github.com/lixmal) **Base:** `main` ← **Head:** `check_wginterface_instead_of_engine_ctx` --- ### 📝 Commits (5) - [`c21cd41`](https://github.com/netbirdio/netbird/commit/c21cd41908a7b02da9385d25d314a5554db92dac) Give more time to restart engine - [`24747fd`](https://github.com/netbirdio/netbird/commit/24747fd458cf6ec821828e1fd2cfcbf3456f91ee) wgInterface must be nil before creating new engine - [`96bb46e`](https://github.com/netbirdio/netbird/commit/96bb46e3dfd7d9a199865cb8655ae95ae61198f5) Make wgInterface nil after engineCtx cancelled - [`281a32e`](https://github.com/netbirdio/netbird/commit/281a32e9d5f1ab92ce208932059b5c908648ceee) Stop routeManager before removing peers - [`c1c710c`](https://github.com/netbirdio/netbird/commit/c1c710c48084cc6f91cabccc5fa23c28f4f72995) Check if dnsServer is not nil ### 📊 Changes **2 files changed** (+23 additions, -18 deletions) <details> <summary>View changed files</summary> 📝 `client/internal/connect.go` (+9 -6) 📝 `client/internal/engine.go` (+14 -12) </details> ### 📄 Description ## Describe your changes Tweaking logic at connect to ensure wgInterface doesn't exist before starting a new engine #2196 ## Issue ticket number and link ### 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:07:42 -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#15456