fix(tsconnect/wasm): Node.js compatibility — safesocket unique name, listen addr normalisation #13
No Reviewers
Labels
Clear labels
Agentic
Component/CI
Component/Funnel
Component/React
Component/State
Component/Taildrive
Component/Taildrop
Component/Tailscale
Component/Tailshare
Component/Transport
Component/tsconnect
Component/VFS
Component/WebRTC
Component/Worker
Human
Protocol/FTP
Protocol/HTTP
Protocol/SFTP
Protocol/SMB
Protocol/SSH
Protocol/WebDAV
Protocol/WebSocket
Security
Agent
claude-fable-5
1
Work done by Claude Fable 5
Agent
claude-opus-4-8
2
Work done by Claude Opus 4.8
Agent
claude-opus-5
Work done by Claude Opus 5
Agent
claude-sonnet-4-6
3
Work done by Claude Sonnet 4.6
Agent
claude-sonnet-5
Work done by Claude Sonnet 5
Agent
gpt-5.5
7
Work done by GPT 5.5
Agent
gpt-5.6-luna
6
Work done by GPT 5.6 Luna
Agent
gpt-5.6-sol
4
Work done by GPT 5.6 Sol
Agent
gpt-5.6-terra
5
Work done by GPT 5.6 Terra
Opened by an agent
Work on the CI tooling
Work on the Tailscale Funnel or certificate system
Work on a React binding
Work on a state store (eg Redux)
Work on the taildrive system
Work on the taildrop system
Work on the Tailscale fork
Work on the Tailshare app
Work on the transport system
Work on the tsconnect packages
Work on the VFS system
Work on the WebRTC system
Work on the worker system
Opened by a human
Kind
Bug
Bug work
Kind
Enhancement
Enhancement work
Kind
Feature
Feature work
Kind
Maintenance
Maintenance work
Priority
P0
1
Critical work that must be done right now
Priority
P1
2
Urgent work
Priority
P2
3
Medium priority work
Priority
P3
4
Low priority work
Priority
P4
5
Lowest priority work, wishlist-tier
Work on the FTP protocol
Work on the HTTP protocol
Work on the SFTP protocol
Work on the SMB protocol
Work on the SSH protocol
Work on the WebDAV protocol
Work on the WebSocket protocol
Security work
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: webnet/tailscale#13
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
Two Go-side bugs found while making
@webnet/tsconnectwork in Node.js (see webnet/webnet#33).fix(safesocket/js): unique memconn name per IPN instance
safesocket_js.gohardcodedmemName = "Tailscale-IPN"for the in-memory IPC address. When a secondnewIPN()call was made in the same WASM process (e.g. two test nodes sharing a WASM instance), the secondsafesocket.Listen("")would fail withaddr unavailableandlog.Fatalthe entire WASM process.Fixed with an atomic counter: each listener gets a distinct name (
Tailscale-IPN-1,Tailscale-IPN-2, …). Theconnect()path is unchanged — in the tsconnect build all LocalAPI calls go through the in-processhttptesthandler andconnect()is never called.fix(tsconnect/wasm): normalise
:portlisten addr to0.0.0.0:portnetstack.ListenTCPrequires a fullhost:portaddress. Callers passing the standard Gonet.Listenform":0"(any-interface ephemeral port) receivedParseAddrPort(":0"): no IP. Thelisten()handler inwasm_js.gonow prepends"0.0.0.0"when the address starts with":", matching the behaviour ofnet.Listen.Test plan
🤖 Generated with Claude Code
codinget referenced this pull request from webnet/webnet2026-06-13 22:19:39 +02:00
netstack.ListenTCP requires a full host:port address; callers passing the standard net.Listen form (":0" for any-interface ephemeral port) would get ParseAddrPort error. Prepend "0.0.0.0" when the address starts with ":" so the API matches Go's net.Listen behaviour. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>cef1031b8eto4618ee1496