[PR #2446] [MERGED] [client] Feature/relay integration fix wgstate #19584

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

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/2446
Author: @pappz
Created: 8/18/2024
Status: Merged
Merged: 8/27/2024
Merged by: @pappz

Base: feature/relay-integrationHead: feature/relay-integration-fix-wgstate


📝 Commits (8)

  • fcc43bb Set to switchable the wg state check
  • e846ccd Dummy commit for trigger the ci
  • 1e03c62 Merge branch 'feature/relay-integration' into feature/relay-integration-fix-wgstate
  • d1cb9ee Merge branch 'feature/relay-integration' into feature/relay-integration-fix-wgstate
  • 2ab7a0b Fix lint issue
  • aee6d56 Merge branch 'feature/relay-integration' into feature/relay-integration-fix-wgstate
  • a994237 Fix typo
  • 647c3eb Update client/internal/peer/worker_relay.go

📊 Changes

3 files changed (+63 additions, -27 deletions)

View changed files

📝 client/internal/peer/conn.go (+8 -4)
📝 client/internal/peer/worker_ice.go (+0 -1)
📝 client/internal/peer/worker_relay.go (+55 -22)

📄 Description

Describe your changes

  • The agent checks the state of the connection with the WireGuard last handshake information. It could cause an inconsistent state with the ICE connection if we open the Relay connection too. In this PR the WireGuard check logic will be activated when the Relay connection is active.
  • After WireGuard check activation we do not need to wait the full timeout period because for any peer configuration, the system sends a new handshake.

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/2446 **Author:** [@pappz](https://github.com/pappz) **Created:** 8/18/2024 **Status:** ✅ Merged **Merged:** 8/27/2024 **Merged by:** [@pappz](https://github.com/pappz) **Base:** `feature/relay-integration` ← **Head:** `feature/relay-integration-fix-wgstate` --- ### 📝 Commits (8) - [`fcc43bb`](https://github.com/netbirdio/netbird/commit/fcc43bb07f7eb0148eedbc5e6cb898f2d29aebbe) Set to switchable the wg state check - [`e846ccd`](https://github.com/netbirdio/netbird/commit/e846ccd5bf9c7ec05f5dd1417ae37f2a893c69b0) Dummy commit for trigger the ci - [`1e03c62`](https://github.com/netbirdio/netbird/commit/1e03c62da0d361a33089e018201f39e84d4891b1) Merge branch 'feature/relay-integration' into feature/relay-integration-fix-wgstate - [`d1cb9ee`](https://github.com/netbirdio/netbird/commit/d1cb9ee3c8547a282684e16a7bd0a40e2013f14e) Merge branch 'feature/relay-integration' into feature/relay-integration-fix-wgstate - [`2ab7a0b`](https://github.com/netbirdio/netbird/commit/2ab7a0b8b5eb0f7e66e3282ec3bc8b2971953570) Fix lint issue - [`aee6d56`](https://github.com/netbirdio/netbird/commit/aee6d56584165d1c0c0afedd150837b0b2ee9da5) Merge branch 'feature/relay-integration' into feature/relay-integration-fix-wgstate - [`a994237`](https://github.com/netbirdio/netbird/commit/a994237258300ec88a531b6d24cfa035029afd73) Fix typo - [`647c3eb`](https://github.com/netbirdio/netbird/commit/647c3eba9a8133b7d47acfd0eee2b1956ad471ca) Update client/internal/peer/worker_relay.go ### 📊 Changes **3 files changed** (+63 additions, -27 deletions) <details> <summary>View changed files</summary> 📝 `client/internal/peer/conn.go` (+8 -4) 📝 `client/internal/peer/worker_ice.go` (+0 -1) 📝 `client/internal/peer/worker_relay.go` (+55 -22) </details> ### 📄 Description ## Describe your changes - The agent checks the state of the connection with the WireGuard last handshake information. It could cause an inconsistent state with the ICE connection if we open the Relay connection too. In this PR the WireGuard check logic will be activated when the Relay connection is active. - After WireGuard check activation we do not need to wait the full timeout period because for any peer configuration, the system sends a new handshake. ## 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 05:06:11 -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#19584