[PR #437] Avoid pulling in management code in client #13563

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

Original Pull Request: https://github.com/netbirdio/netbird/pull/437

State: closed
Merged: Yes


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.

**Original Pull Request:** https://github.com/netbirdio/netbird/pull/437 **State:** closed **Merged:** Yes --- 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.
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#13563