[PR #925] [MERGED] Reject adding peer if already exists with a pub key #13156

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

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/925
Author: @braginini
Created: 6/2/2023
Status: Merged
Merged: 6/2/2023
Merged by: @mlsmaycon

Base: mainHead: fix/race_when_adding_peer


📝 Commits (1)

  • 8ed8273 Reject adding peer if already exists with the pub key

📊 Changes

1 file changed (+5 additions, -0 deletions)

View changed files

📝 management/server/peer.go (+5 -0)

📄 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/925 **Author:** [@braginini](https://github.com/braginini) **Created:** 6/2/2023 **Status:** ✅ Merged **Merged:** 6/2/2023 **Merged by:** [@mlsmaycon](https://github.com/mlsmaycon) **Base:** `main` ← **Head:** `fix/race_when_adding_peer` --- ### 📝 Commits (1) - [`8ed8273`](https://github.com/netbirdio/netbird/commit/8ed8273d34f09ef866efcbe152162c842ab7ed28) Reject adding peer if already exists with the pub key ### 📊 Changes **1 file changed** (+5 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `management/server/peer.go` (+5 -0) </details> ### 📄 Description ## Describe your changes ## 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 02:07:36 -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#13156