[PR #3254] [CLOSED] [client] WGwatcher error handling #19828

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

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/3254
Author: @pappz
Created: 1/30/2025
Status: Closed

Base: mainHead: wgwatcher-test


📝 Commits (5)

  • 759544f Move wg watcher code to separated file and add tests
  • ef5e417 If can not read WireGuard state then trigger reconnection
  • b7cf77d Wait DisableWgWatcher to exit from periodic check loop
  • 961a942 Code cleaning in callbacks
  • dd13b8f Code cleaning

📊 Changes

6 files changed (+286 additions, -163 deletions)

View changed files

📝 client/internal/peer/conn.go (+15 -22)
📝 client/internal/peer/guard/guard.go (+12 -24)
client/internal/peer/wg_watcher.go (+134 -0)
client/internal/peer/wg_watcher_test.go (+98 -0)
📝 client/internal/peer/worker_ice.go (+6 -11)
📝 client/internal/peer/worker_relay.go (+21 -106)

📄 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/3254 **Author:** [@pappz](https://github.com/pappz) **Created:** 1/30/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `wgwatcher-test` --- ### 📝 Commits (5) - [`759544f`](https://github.com/netbirdio/netbird/commit/759544f2c37569413aa2e3a349e03356bae7cf6b) Move wg watcher code to separated file and add tests - [`ef5e417`](https://github.com/netbirdio/netbird/commit/ef5e417cb7d9346d00fbd36a885f53dca68a2a61) If can not read WireGuard state then trigger reconnection - [`b7cf77d`](https://github.com/netbirdio/netbird/commit/b7cf77d3241c024e1394a0412e4eab18ee7bcb69) Wait DisableWgWatcher to exit from periodic check loop - [`961a942`](https://github.com/netbirdio/netbird/commit/961a942339144fe0ab3c26280fd0ab01d1ff1923) Code cleaning in callbacks - [`dd13b8f`](https://github.com/netbirdio/netbird/commit/dd13b8f27eabb649952754071e5165515887d3ee) Code cleaning ### 📊 Changes **6 files changed** (+286 additions, -163 deletions) <details> <summary>View changed files</summary> 📝 `client/internal/peer/conn.go` (+15 -22) 📝 `client/internal/peer/guard/guard.go` (+12 -24) ➕ `client/internal/peer/wg_watcher.go` (+134 -0) ➕ `client/internal/peer/wg_watcher_test.go` (+98 -0) 📝 `client/internal/peer/worker_ice.go` (+6 -11) 📝 `client/internal/peer/worker_relay.go` (+21 -106) </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:06:30 -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#19828