[PR #2518] [MERGED] Add version byte to wire protocol #17512

Open
opened 2026-08-05 04:07:24 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/2518
Author: @lixmal
Created: 9/2/2024
Status: Merged
Merged: 9/3/2024
Merged by: @lixmal

Base: split-relay-auth-configHead: add-version-byte


📝 Commits (10+)

📊 Changes

7 files changed (+152 additions, -86 deletions)

View changed files

📝 relay/client/client.go (+24 -4)
📝 relay/client/dialer/ws/ws.go (+9 -1)
📝 relay/messages/message.go (+73 -60)
📝 relay/messages/message_test.go (+2 -2)
📝 relay/server/listener/ws/listener.go (+4 -1)
📝 relay/server/peer.go (+34 -16)
📝 relay/server/relay.go (+6 -2)

📄 Description

Describe your changes

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/2518 **Author:** [@lixmal](https://github.com/lixmal) **Created:** 9/2/2024 **Status:** ✅ Merged **Merged:** 9/3/2024 **Merged by:** [@lixmal](https://github.com/lixmal) **Base:** `split-relay-auth-config` ← **Head:** `add-version-byte` --- ### 📝 Commits (10+) - [`d8b6f22`](https://github.com/netbirdio/netbird/commit/d8b6f22bf23c70a410b29662376e1285afca8fb1) [relay] Add url path to connection (#2505) - [`04308ae`](https://github.com/netbirdio/netbird/commit/04308aeed03ecf6b1877a78e7904bacd05228681) Add version byte to wire protocol - [`d4262c8`](https://github.com/netbirdio/netbird/commit/d4262c89bcea82ac21fcfeea7317af4e269baeaf) Revert "Add version byte to wire protocol" - [`95ad312`](https://github.com/netbirdio/netbird/commit/95ad312694cf30132c19096215ae13b930c27d4c) Add version byte to wire protocol - [`c663cd4`](https://github.com/netbirdio/netbird/commit/c663cd4b3e26da3320f17d6e904841a6bfd077af) Validate message type - [`4e9d1d3`](https://github.com/netbirdio/netbird/commit/4e9d1d3d2652dacd43b917b604eaa0682a84b8ec) Remove obsolete code - [`e3593a0`](https://github.com/netbirdio/netbird/commit/e3593a02629e0fc6ffd8e4eb09e4ee0eeb5f1eca) Fix test - [`a48ee73`](https://github.com/netbirdio/netbird/commit/a48ee736f0957791f318aa6403714e6427ca1052) Remove unused code - [`35e7f2d`](https://github.com/netbirdio/netbird/commit/35e7f2d9e436606a073452772489370ddf420575) Remove string dupes - [`ae59da8`](https://github.com/netbirdio/netbird/commit/ae59da821dc1a532146568173ae9abb2cf45182c) Reduce cognitive complexity ### 📊 Changes **7 files changed** (+152 additions, -86 deletions) <details> <summary>View changed files</summary> 📝 `relay/client/client.go` (+24 -4) 📝 `relay/client/dialer/ws/ws.go` (+9 -1) 📝 `relay/messages/message.go` (+73 -60) 📝 `relay/messages/message_test.go` (+2 -2) 📝 `relay/server/listener/ws/listener.go` (+4 -1) 📝 `relay/server/peer.go` (+34 -16) 📝 `relay/server/relay.go` (+6 -2) </details> ### 📄 Description ## Describe your changes ## Issue ticket number and link ### 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 04:07:24 -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#17512