Files
t3code/apps
Josh Gratton ce93b7a1c4 fix(desktop): use loopback for WSL backend URL when in mirrored mode
WSL2's `networkingMode=mirrored` makes the distro share the Windows
network stack, so `hostname -I` returns the host's own IP (e.g.
192.168.0.64). Our renderer URL resolution was passing that IP through
verbatim, and Windows can't route a packet to its own NIC address and
have it loop back to a WSL listener — the request just times out.
Loopback DOES forward correctly in mirrored mode, so detect the
collision (distro IP matches one of our own interfaces) and fall back
to 127.0.0.1.

NAT mode is unchanged: the distro IP there is a private vEthernet
address that won't match any Windows interface, so we keep advertising
it as before (which is the path that avoids the flaky wslhost proxy).
2026-05-18 13:03:27 -04:00
..
2026-05-18 12:19:07 -04:00