[PR #533] [MERGED] Return gateway address if not nil #12717

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

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/533
Author: @mlsmaycon
Created: 10/31/2022
Status: Merged
Merged: 10/31/2022
Merged by: @mlsmaycon

Base: mainHead: return-gateway-if-not-nil


📝 Commits (2)

  • 2c51752 Return gateway address if not nil
  • 30172b1 update log message

📊 Changes

2 files changed (+49 additions, -3 deletions)

View changed files

📝 client/internal/routemanager/systemops.go (+6 -3)
📝 client/internal/routemanager/systemops_test.go (+43 -0)

📄 Description

If the gateway address would be nil which is the case of macOS, we return the preferredSrc

added tests for getExistingRIBRouteGateway function


🔄 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/533 **Author:** [@mlsmaycon](https://github.com/mlsmaycon) **Created:** 10/31/2022 **Status:** ✅ Merged **Merged:** 10/31/2022 **Merged by:** [@mlsmaycon](https://github.com/mlsmaycon) **Base:** `main` ← **Head:** `return-gateway-if-not-nil` --- ### 📝 Commits (2) - [`2c51752`](https://github.com/netbirdio/netbird/commit/2c51752e1242f1945fa8a52170cc15e9aaf76713) Return gateway address if not nil - [`30172b1`](https://github.com/netbirdio/netbird/commit/30172b1aa8bdacf93c36b4e35ccc01b746e396c2) update log message ### 📊 Changes **2 files changed** (+49 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `client/internal/routemanager/systemops.go` (+6 -3) 📝 `client/internal/routemanager/systemops_test.go` (+43 -0) </details> ### 📄 Description If the gateway address would be nil which is the case of macOS, we return the preferredSrc added tests for getExistingRIBRouteGateway function --- <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:06:32 -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#12717