[PR #2470] [MERGED] [relay] Store the StunTurn address in thread safe store #15202

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

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/2470
Author: @pappz
Created: 8/22/2024
Status: Merged
Merged: 9/4/2024
Merged by: @pappz

Base: mainHead: fix/atomic-stunturn-addr


📝 Commits (3)

  • a08c342 Store the StunTurn address in thread safe store
  • 1b5e371 Fix test
  • bf6a36d [relay] Move ICE related configs to a new struct (#2472)

📊 Changes

5 files changed (+58 additions, -57 deletions)

View changed files

📝 client/internal/engine.go (+23 -22)
📝 client/internal/peer/conn.go (+26 -26)
📝 client/internal/peer/conn_test.go (+7 -7)
📝 client/internal/peer/stdnet.go (+1 -1)
📝 client/internal/peer/stdnet_android.go (+1 -1)

📄 Description

Store the StunTurn address in atomic store

Does not need to apply a lock and extra function to update the addresses

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/2470 **Author:** [@pappz](https://github.com/pappz) **Created:** 8/22/2024 **Status:** ✅ Merged **Merged:** 9/4/2024 **Merged by:** [@pappz](https://github.com/pappz) **Base:** `main` ← **Head:** `fix/atomic-stunturn-addr` --- ### 📝 Commits (3) - [`a08c342`](https://github.com/netbirdio/netbird/commit/a08c342da86fb0dec4eb2f99b622493afd3ab5a8) Store the StunTurn address in thread safe store - [`1b5e371`](https://github.com/netbirdio/netbird/commit/1b5e37187ab863d8fa16d66ca573ee518c729885) Fix test - [`bf6a36d`](https://github.com/netbirdio/netbird/commit/bf6a36d68003ca99c9c646b67c6dd7688aa0c2e8) [relay] Move ICE related configs to a new struct (#2472) ### 📊 Changes **5 files changed** (+58 additions, -57 deletions) <details> <summary>View changed files</summary> 📝 `client/internal/engine.go` (+23 -22) 📝 `client/internal/peer/conn.go` (+26 -26) 📝 `client/internal/peer/conn_test.go` (+7 -7) 📝 `client/internal/peer/stdnet.go` (+1 -1) 📝 `client/internal/peer/stdnet_android.go` (+1 -1) </details> ### 📄 Description Store the StunTurn address in atomic store Does not need to apply a lock and extra function to update the addresses ## Describe your changes ## Issue ticket number and link ### Checklist - [ ] Is it a bug fix - [ ] Is a typo/documentation fix - [x] 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:10 -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#15202