fix: code-server path based forwarding, defer to code-server (#11759)

Do not attempt to construct a path based port forward url.
Always defer to code server, as it has it's own proxy method.
This commit is contained in:
Steven Masley
2024-01-23 11:36:44 -06:00
committed by GitHub
parent 77a4792ecd
commit 081fbef097
3 changed files with 13 additions and 8 deletions

View File

@ -35,19 +35,18 @@ func Test_vscodeProxyURI(t *testing.T) {
Expected string
}{
{
// No hostname proxies through the access url.
Name: "NoHostname",
AccessURL: coderAccessURL,
AppHostname: "",
App: basicApp,
Expected: coderAccessURL.String(),
Expected: "",
},
{
Name: "NoHostnameAccessURLPort",
AccessURL: accessURLWithPort,
AppHostname: "",
App: basicApp,
Expected: accessURLWithPort.String(),
Expected: "",
},
{
Name: "Hostname",