[PR #4425] [MERGED] [client] Fix/wasm bind js #23274

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

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/4425
Author: @pappz
Created: 9/1/2025
Status: Merged
Merged: 9/8/2025
Merged by: @pappz

Base: poc-wasm-cleanHead: fix/wasm_bind_js


📝 Commits (9)

  • d63746c Refactor js_bind_js.go
  • 433cf03 Fix udp mux error handling
  • e323d4f Typo fix
  • a57dffa Fix error definition
  • 099e1f3 Fix close handling
  • 4f26d12 Merge branch 'poc-wasm-clean' into fix/wasm_bind_js
  • f495736 Merge branch 'poc-wasm-clean' into fix/wasm_bind_js
  • 1dd0a0c Fix NetStack device creation
  • 8ccd9b3 Remove log

📊 Changes

17 files changed (+241 additions, -274 deletions)

View changed files

client/iface/bind/error.go (+7 -0)
📝 client/iface/bind/ice_bind.go (+27 -24)
client/iface/bind/ice_bind_common.go (+0 -69)
client/iface/bind/ice_bind_js.go (+0 -141)
client/iface/bind/recv_msg.go (+6 -0)
client/iface/bind/relay_bind.go (+123 -0)
📝 client/iface/device/device_netstack.go (+20 -8)
client/iface/device/device_netstack_test.go (+27 -0)
📝 client/iface/iface_new_android.go (+2 -2)
📝 client/iface/iface_new_darwin.go (+1 -1)
📝 client/iface/iface_new_ios.go (+1 -1)
📝 client/iface/iface_new_js.go (+3 -3)
📝 client/iface/iface_new_unix.go (+2 -2)
📝 client/iface/iface_new_windows.go (+1 -1)
📝 client/iface/wgproxy/bind/proxy.go (+15 -11)
📝 client/iface/wgproxy/factory_usp.go (+6 -5)
📝 client/internal/engine_js.go (+0 -6)

📄 Description

Describe your changes

  • Create a new bind implementation that does not include the ICE-related stuff.
  • Fix potential deadlock in proxy (add context cancellation handling)

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)

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 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/4425 **Author:** [@pappz](https://github.com/pappz) **Created:** 9/1/2025 **Status:** ✅ Merged **Merged:** 9/8/2025 **Merged by:** [@pappz](https://github.com/pappz) **Base:** `poc-wasm-clean` ← **Head:** `fix/wasm_bind_js` --- ### 📝 Commits (9) - [`d63746c`](https://github.com/netbirdio/netbird/commit/d63746cadd6c0cb744fbcd2bdcd94417fd8cc19a) Refactor js_bind_js.go - [`433cf03`](https://github.com/netbirdio/netbird/commit/433cf0369f78e3b76c6255025a1ca02d80c02b25) Fix udp mux error handling - [`e323d4f`](https://github.com/netbirdio/netbird/commit/e323d4f95559b32c2855a44ad9daa13ee07d89c8) Typo fix - [`a57dffa`](https://github.com/netbirdio/netbird/commit/a57dffa8a48977d43ece8a0b9abef1e63cf16e9b) Fix error definition - [`099e1f3`](https://github.com/netbirdio/netbird/commit/099e1f3ddc5a7d6e2828b611b7a1acf6a7947b8d) Fix close handling - [`4f26d12`](https://github.com/netbirdio/netbird/commit/4f26d12ab6704bcfd01a10f6f5d59e62e73395ab) Merge branch 'poc-wasm-clean' into fix/wasm_bind_js - [`f495736`](https://github.com/netbirdio/netbird/commit/f49573635e278c2e7dcdfd3503d575cdf7736743) Merge branch 'poc-wasm-clean' into fix/wasm_bind_js - [`1dd0a0c`](https://github.com/netbirdio/netbird/commit/1dd0a0c6a8e20b4755783a0f6670a1b1b559ceda) Fix NetStack device creation - [`8ccd9b3`](https://github.com/netbirdio/netbird/commit/8ccd9b3fa2547169cfe66e8da590f5c970317e8d) Remove log ### 📊 Changes **17 files changed** (+241 additions, -274 deletions) <details> <summary>View changed files</summary> ➕ `client/iface/bind/error.go` (+7 -0) 📝 `client/iface/bind/ice_bind.go` (+27 -24) ➖ `client/iface/bind/ice_bind_common.go` (+0 -69) ➖ `client/iface/bind/ice_bind_js.go` (+0 -141) ➕ `client/iface/bind/recv_msg.go` (+6 -0) ➕ `client/iface/bind/relay_bind.go` (+123 -0) 📝 `client/iface/device/device_netstack.go` (+20 -8) ➕ `client/iface/device/device_netstack_test.go` (+27 -0) 📝 `client/iface/iface_new_android.go` (+2 -2) 📝 `client/iface/iface_new_darwin.go` (+1 -1) 📝 `client/iface/iface_new_ios.go` (+1 -1) 📝 `client/iface/iface_new_js.go` (+3 -3) 📝 `client/iface/iface_new_unix.go` (+2 -2) 📝 `client/iface/iface_new_windows.go` (+1 -1) 📝 `client/iface/wgproxy/bind/proxy.go` (+15 -11) 📝 `client/iface/wgproxy/factory_usp.go` (+6 -5) 📝 `client/internal/engine_js.go` (+0 -6) </details> ### 📄 Description ## Describe your changes - Create a new bind implementation that does not include the ICE-related stuff. - Fix potential deadlock in proxy (add context cancellation handling) ## Issue ticket number and link ## Stack <!-- branch-stack --> ### Checklist - [ ] Is it a bug fix - [ ] Is a typo/documentation fix - [ ] Is a feature enhancement - [x] 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) ### 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/__ --- <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 06:07:00 -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#23274