[PR #6516] rebase lneto diff #28365

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

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/6516
Author: @soypat
Created: 6/22/2026
Status: 🔄 Open

Base: mainHead: nb-lnetoprep2


📝 Commits (5)

  • 51eb4f0 rebase lneto diff
  • 240444a update path
  • ca848b5 guard tinygo from compiling stuff it does not need in browser
  • c74d073 more build tag protections
  • 5cf279d exclude more from WASM build

📊 Changes

21 files changed (+334 additions, -22 deletions)

View changed files

📝 .github/workflows/wasm-build-validation.yml (+4 -3)
📝 .gitignore (+8 -0)
���� .goreleaser.yaml (+2 -0)
📝 client/firewall/create.go (+1 -1)
client/firewall/create_js.go (+67 -0)
📝 client/firewall/uspfilter/forwarder/endpoint.go (+2 -0)
📝 client/firewall/uspfilter/forwarder/forwarder.go (+2 -0)
client/firewall/uspfilter/forwarder/forwarder_js.go (+41 -0)
📝 client/firewall/uspfilter/forwarder/icmp.go (+2 -0)
📝 client/firewall/uspfilter/forwarder/tcp.go (+2 -0)
📝 client/firewall/uspfilter/forwarder/udp.go (+2 -0)
📝 client/iface/netstack/proxy.go (+2 -0)
client/iface/netstack/proxy_js.go (+28 -0)
📝 client/internal/dns/tcpstack.go (+2 -0)
client/internal/dns/tcpstack_js.go (+22 -0)
📝 go.mod (+4 -1)
📝 go.sum (+0 -2)
lneto.diff (+95 -0)
📝 util/log.go (+0 -15)
util/log_rotate.go (+27 -0)

...and 1 more files

📄 Description

WIP though almost ready

Summary by CodeRabbit

  • Chores / Build Updates

    • Updated WebAssembly builds to use the wglneto build tag.
    • Increased wasm artifact size validation limit to 64MB (with updated failure messaging).
    • Updated build/release configuration and expanded ignored generated wasm/Netbird-related outputs.
  • New Features

    • Added JS/wasm-friendly SOCKS5 proxy stub (default port 1080).
  • Bug Fixes / Compatibility

    • Ensured packet forwarding and TCP DNS safely degrade on JS/wasm builds (no-op/unsupported behavior instead of build/runtime issues).

🔄 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/6516 **Author:** [@soypat](https://github.com/soypat) **Created:** 6/22/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `nb-lnetoprep2` --- ### 📝 Commits (5) - [`51eb4f0`](https://github.com/netbirdio/netbird/commit/51eb4f010f6c83775034e62c625d30a4f3b67b22) rebase lneto diff - [`240444a`](https://github.com/netbirdio/netbird/commit/240444aeee2013106fa165023137c9413a35268c) update path - [`ca848b5`](https://github.com/netbirdio/netbird/commit/ca848b5170e116034770391b2b0490cde8349a5d) guard tinygo from compiling stuff it does not need in browser - [`c74d073`](https://github.com/netbirdio/netbird/commit/c74d073f5aabcbe97a4f7ce8699e8fe0144ed89c) more build tag protections - [`5cf279d`](https://github.com/netbirdio/netbird/commit/5cf279dc23acbce9014c43d095f86814dc352e60) exclude more from WASM build ### 📊 Changes **21 files changed** (+334 additions, -22 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/wasm-build-validation.yml` (+4 -3) 📝 `.gitignore` (+8 -0) ���� `.goreleaser.yaml` (+2 -0) 📝 `client/firewall/create.go` (+1 -1) ➕ `client/firewall/create_js.go` (+67 -0) 📝 `client/firewall/uspfilter/forwarder/endpoint.go` (+2 -0) 📝 `client/firewall/uspfilter/forwarder/forwarder.go` (+2 -0) ➕ `client/firewall/uspfilter/forwarder/forwarder_js.go` (+41 -0) 📝 `client/firewall/uspfilter/forwarder/icmp.go` (+2 -0) 📝 `client/firewall/uspfilter/forwarder/tcp.go` (+2 -0) 📝 `client/firewall/uspfilter/forwarder/udp.go` (+2 -0) 📝 `client/iface/netstack/proxy.go` (+2 -0) ➕ `client/iface/netstack/proxy_js.go` (+28 -0) 📝 `client/internal/dns/tcpstack.go` (+2 -0) ➕ `client/internal/dns/tcpstack_js.go` (+22 -0) 📝 `go.mod` (+4 -1) 📝 `go.sum` (+0 -2) ➕ `lneto.diff` (+95 -0) 📝 `util/log.go` (+0 -15) ➕ `util/log_rotate.go` (+27 -0) _...and 1 more files_ </details> ### 📄 Description WIP though almost ready <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores / Build Updates** * Updated WebAssembly builds to use the `wglneto` build tag. * Increased wasm artifact size validation limit to **64MB** (with updated failure messaging). * Updated build/release configuration and expanded ignored generated wasm/Netbird-related outputs. * **New Features** * Added JS/wasm-friendly SOCKS5 proxy stub (default port **1080**). * **Bug Fixes / Compatibility** * Ensured packet forwarding and TCP DNS safely degrade on JS/wasm builds (no-op/unsupported behavior instead of build/runtime issues). <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <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 08:06:13 -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#28365