mxc
mxc copied to clipboard
[WSLC] Support hostloopback when using the built-in proxy.
Description of the task
See title.
Additional context
No response
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 inwslcsdk_sys.rsbut isn't called. - Have the gateway relay only the proxy's port to Windows
127.0.0.1, independent ofhostLoopback. - Remove the
ERR_PROXY_LOOPBACKcheck inpolicy.rs(relayed_proxy_address). - With
hostLoopback: allowplus a custom proxy, setNO_PROXY/no_proxytohost.wslc.internal. - Add E2E coverage in
run_wslc_all_tests.ps1.