[PR #47] [CLOSED] adding peer add endpoint #2505

Closed
opened 2025-11-20 07:11:16 -05:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/47
Author: @casonadams
Created: 7/9/2021
Status: Closed

Base: mainHead: peer-add-endpoint


📝 Commits (1)

📊 Changes

1 file changed (+57 additions, -26 deletions)

View changed files

📝 connection/engine.go (+57 -26)

📄 Description

I would like to add something like this. I am not sure the best approach. It would be nice to have an option to make the peer get written to the config also.

This command would then add a peer while the application is running, not requiring a restart.

curl -d '{"WgPubKey": "pubkey", "WgAllowedIps": "fd00::0/8"}' http://localhost:7777/peer

🔄 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/47 **Author:** [@casonadams](https://github.com/casonadams) **Created:** 7/9/2021 **Status:** ❌ Closed **Base:** `main` ← **Head:** `peer-add-endpoint` --- ### 📝 Commits (1) - [`a39aea3`](https://github.com/netbirdio/netbird/commit/a39aea3a36b00eb402b82a26b0a7732d8cf5ba57) adding peer add endpoint ### 📊 Changes **1 file changed** (+57 additions, -26 deletions) <details> <summary>View changed files</summary> 📝 `connection/engine.go` (+57 -26) </details> ### 📄 Description I would like to add something like this. I am not sure the best approach. It would be nice to have an option to make the peer get written to the config also. This command would then add a peer while the application is running, not requiring a restart. ```bash curl -d '{"WgPubKey": "pubkey", "WgAllowedIps": "fd00::0/8"}' http://localhost:7777/peer ``` --- <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 2025-11-20 07:11:16 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#2505