Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(desktop): [upstream-bound] WSL backend binds the user's exposure host instead of 0.0.0.0 #10358

ClosedKhang5687(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/10358/headopened View on GitHub

The WSL backend always bound 0.0.0.0 inside the distro, so "Limited to this machine" was untrue for anyone with Tailscale or another interface inside WSL. resolveWslStartConfig now takes the bind host from DesktopServerExposure like the Windows primary: local-only binds 127.0.0.1 and skips the distro-IP probe (reachable via WSL2 localhost forwarding); network-accessible keeps 0.0.0.0 plus the eth0 IP as the renderer URL.

Relies on WSL2 localhost forwarding; unverified on a real WSL machine.

Fixes pingdotgg/t3code#9056 Closes Khang5687/t3code#2

(cherry picked from commit 3c3b4b51818ff4f4425af1222e0797ade9eff192)

    1. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched

    2. Note

      This comment is posted by Julius' dot

      This changes local-only WSL connections to depend on localhost forwarding, which the existing code documents as unreliable on some hosts. The PR reports no focused test results and explicitly leaves WSL reachability unverified, so it lacks verification evidence for that change. Please provide the backend-configuration test results and a check that the renderer reaches the loopback-bound backend while non-loopback access is blocked, then request reconsideration.

    3. juliusmarminge closed this

Sign in to join this conversation.