[PR #2479] [MERGED] [client] Use static requested GUID when creating Windows interface #17454

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

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/2479
Author: @mlsmaycon
Created: 8/24/2024
Status: Merged
Merged: 8/27/2024
Merged by: @mlsmaycon

Base: mainHead: use-static-guid-to-request-interface


📝 Commits (5)

  • 23340f2 Use static requested GUID when creating Windows interface
  • 122ab1d use custom guid on test
  • 5160e77 use custom guid on test in the lock
  • dd59a9a move const
  • 64d52cd update Test_ConnectPeers

📊 Changes

4 files changed (+30 additions, -1 deletions)

View changed files

📝 client/internal/engine_test.go (+3 -0)
📝 iface/iface_test.go (+8 -0)
📝 iface/tun.go (+3 -0)
📝 iface/tun_windows.go (+16 -1)

📄 Description

Describe your changes

RequestedGUID is the GUID of the created network adapter, which then influences NLA generation deterministically.

With this change, NetBird should not generate multiple interfaces in every restart on Windows.

Resolves #1658 #2004

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/2479 **Author:** [@mlsmaycon](https://github.com/mlsmaycon) **Created:** 8/24/2024 **Status:** ✅ Merged **Merged:** 8/27/2024 **Merged by:** [@mlsmaycon](https://github.com/mlsmaycon) **Base:** `main` ← **Head:** `use-static-guid-to-request-interface` --- ### 📝 Commits (5) - [`23340f2`](https://github.com/netbirdio/netbird/commit/23340f2a9b88d40184ce61e1a5a8d1faf22c93dd) Use static requested GUID when creating Windows interface - [`122ab1d`](https://github.com/netbirdio/netbird/commit/122ab1d1a10c1d01426be81b7a35a8ede2f6509d) use custom guid on test - [`5160e77`](https://github.com/netbirdio/netbird/commit/5160e7796ea8821a7c9064b37db069389b59b23c) use custom guid on test in the lock - [`dd59a9a`](https://github.com/netbirdio/netbird/commit/dd59a9a3fa9206139eb2293267a8c64efc8c518d) move const - [`64d52cd`](https://github.com/netbirdio/netbird/commit/64d52cdd0c2e9c0907354a3ac3bb450d85abe800) update Test_ConnectPeers ### 📊 Changes **4 files changed** (+30 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `client/internal/engine_test.go` (+3 -0) 📝 `iface/iface_test.go` (+8 -0) 📝 `iface/tun.go` (+3 -0) 📝 `iface/tun_windows.go` (+16 -1) </details> ### 📄 Description ## Describe your changes RequestedGUID is the GUID of the created network adapter, which then influences NLA generation deterministically. With this change, NetBird should not generate multiple interfaces in every restart on Windows. ## Issue ticket number and link Resolves #1658 #2004 ### 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 04:07:20 -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#17454