[PR #5827] [MERGED] [client] Fix FreeBSD not reporting network addresses #28603

Closed
opened 2026-08-05 08:06:37 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/5827
Author: @lixmal
Created: 4/8/2026
Status: Merged
Merged: 4/8/2026
Merged by: @lixmal

Base: mainHead: fix-freebsd-network-addresses


📝 Commits (1)

  • 30ea5b8 Populate network addresses in FreeBSD system info

📊 Changes

1 file changed (+17 additions, -11 deletions)

View changed files

📝 client/system/info_freebsd.go (+17 -11)

📄 Description

Describe your changes

FreeBSD peers report an empty network_addresses in their system info because GetInfo on FreeBSD never called networkAddresses(). All other platforms (Linux, Darwin, Windows) populate this field.

  • Call networkAddresses() in info_freebsd.go and set the NetworkAddresses field, matching other platforms

Stack

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)

By submitting this pull request, you confirm that you have read and agree to the terms of the Contributor License Agreement.

Documentation

Select exactly one:

  • I added/updated documentation for this change
  • Documentation is not needed for this change (explain why)

The function already existed, it just wasn't called on FreeBSD.

Docs PR URL (required if "docs added" is checked)

Paste the PR link from https://github.com/netbirdio/docs here:

https://github.com/netbirdio/docs/pull/__

Summary by CodeRabbit

  • New Features

    • FreeBSD systems now report network addresses in system information.
  • Bug Fixes

    • System information retrieval no longer fails if network address discovery encounters issues; a warning is logged instead.

🔄 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/5827 **Author:** [@lixmal](https://github.com/lixmal) **Created:** 4/8/2026 **Status:** ✅ Merged **Merged:** 4/8/2026 **Merged by:** [@lixmal](https://github.com/lixmal) **Base:** `main` ← **Head:** `fix-freebsd-network-addresses` --- ### 📝 Commits (1) - [`30ea5b8`](https://github.com/netbirdio/netbird/commit/30ea5b886cf18a6e8e3ff666e92e43a680cbe82d) Populate network addresses in FreeBSD system info ### 📊 Changes **1 file changed** (+17 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `client/system/info_freebsd.go` (+17 -11) </details> ### 📄 Description ## Describe your changes FreeBSD peers report an empty `network_addresses` in their system info because `GetInfo` on FreeBSD never called `networkAddresses()`. All other platforms (Linux, Darwin, Windows) populate this field. - Call `networkAddresses()` in `info_freebsd.go` and set the `NetworkAddresses` field, matching other platforms ## Issue ticket number and link ## Stack <!-- branch-stack --> ### 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) > By submitting this pull request, you confirm that you have read and agree to the terms of the [Contributor License Agreement](https://github.com/netbirdio/netbird/blob/main/CONTRIBUTOR_LICENSE_AGREEMENT.md). ## Documentation Select exactly one: - [ ] I added/updated documentation for this change - [x] Documentation is **not needed** for this change (explain why) The function already existed, it just wasn't called on FreeBSD. ### Docs PR URL (required if "docs added" is checked) Paste the PR link from https://github.com/netbirdio/docs here: https://github.com/netbirdio/docs/pull/__ <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * FreeBSD systems now report network addresses in system information. * **Bug Fixes** * System information retrieval no longer fails if network address discovery encounters issues; a warning is logged instead. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <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 08:06:37 -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#28603