mxc icon indicating copy to clipboard operation
mxc copied to clipboard

[WSLC] Support hostloopback when using the built-in proxy.

Open theelliotm opened this issue 1 week ago • 1 comments

Description of the task

See title.

Additional context

No response

theelliotm avatar Nov 18 '26 23:11 theelliotm

Also covers loopback custom proxies (runtimeConfig.networkProxy on Windows 127.0.0.1 / localhost) behind the built-in proxy. The custom proxy branch (user/emichlin/wslc-proxy-custom-proxy) rejects these for now with "a runtimeConfig.networkProxy on Windows loopback is not supported yet".

To support them:

  • Enable session host loopback (WslcSetSessionSettingsHostLoopback, WSL 3.0.5+). The binding exists in wslcsdk_sys.rs but isn't called.
  • Have the gateway relay only the proxy's port to Windows 127.0.0.1, independent of hostLoopback.
  • Remove the ERR_PROXY_LOOPBACK check in policy.rs (relayed_proxy_address).
  • With hostLoopback: allow plus a custom proxy, set NO_PROXY/no_proxy to host.wslc.internal.
  • Add E2E coverage in run_wslc_all_tests.ps1.

Spec: Custom proxy, Enabling host loopback in WSL.

theelliotm avatar Nov 18 '26 23:11 theelliotm