[PR #437] [MERGED] Avoid pulling in management code in client #13557

Open
opened 2026-08-05 02:08:41 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/437
Author: @szakharchenko
Created: 8/23/2022
Status: Merged
Merged: 8/24/2022
Merged by: @braginini

Base: mainHead: drop-management-dependency


📝 Commits (1)

  • a64a4a8 Avoid pulling in management code in client

📊 Changes

1 file changed (+6 additions, -2 deletions)

View changed files

📝 client/internal/connect.go (+6 -2)

📄 Description

Avoid management code import for the legacy port value, hardcoding it instead (it's literally spelled out in a comment below as well).

Fixes #436, saving around 9% disk space (go build -ldflags="-s -w" client/main.go: old: 16838656 bytes, new: 15253504 bytes, go 1.18.4 x86-86). This doesn't look much but it counts in embedded devices.


🔄 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/437 **Author:** [@szakharchenko](https://github.com/szakharchenko) **Created:** 8/23/2022 **Status:** ✅ Merged **Merged:** 8/24/2022 **Merged by:** [@braginini](https://github.com/braginini) **Base:** `main` ← **Head:** `drop-management-dependency` --- ### 📝 Commits (1) - [`a64a4a8`](https://github.com/netbirdio/netbird/commit/a64a4a8bf2b12f92b60d4bfe9a19a7ba91364553) Avoid pulling in management code in client ### 📊 Changes **1 file changed** (+6 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `client/internal/connect.go` (+6 -2) </details> ### 📄 Description Avoid management code import for the legacy port value, hardcoding it instead (it's literally spelled out in a comment below as well). Fixes #436, saving around 9% disk space (go build -ldflags="-s -w" client/main.go: old: 16838656 bytes, new: 15253504 bytes, go 1.18.4 x86-86). This doesn't look much but it counts in embedded devices. --- <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:08:41 -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#13557