[PR #2024] [MERGED] use the next available port for wireguard #14555

Open
opened 2026-08-05 03:05:52 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/2024
Author: @mattkasun
Created: 5/21/2024
Status: Merged
Merged: 5/22/2024
Merged by: @mlsmaycon

Base: mainHead: main


📝 Commits (2)

  • ce40454 check for available port
  • 2287bbf add log if WgPort is in use

📊 Changes

2 files changed (+84 additions, -0 deletions)

View changed files

📝 client/internal/connect.go (+27 -0)
client/internal/connect_test.go (+57 -0)

📄 Description

Describe your changes

check if WgPort is available, if not find a free port

fixes issue #546

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/2024 **Author:** [@mattkasun](https://github.com/mattkasun) **Created:** 5/21/2024 **Status:** ✅ Merged **Merged:** 5/22/2024 **Merged by:** [@mlsmaycon](https://github.com/mlsmaycon) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (2) - [`ce40454`](https://github.com/netbirdio/netbird/commit/ce40454a93fbf122d09f5eeec6cac76c61084e25) check for available port - [`2287bbf`](https://github.com/netbirdio/netbird/commit/2287bbf7694f2ce2e35b0cf9db07b97334ade5e0) add log if WgPort is in use ### 📊 Changes **2 files changed** (+84 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `client/internal/connect.go` (+27 -0) ➕ `client/internal/connect_test.go` (+57 -0) </details> ### 📄 Description ## Describe your changes check if WgPort is available, if not find a free port ## Issue ticket number and link fixes issue #546 ### 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:05:52 -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#14555