SSH Proxy support (#2736)

* initial commit
This commit is contained in:
Irena Rindos authored and GitHub committed 2023-01-09 13:43:02 -05:00
1 parent 1fb960575f
commit beb97ac9f2
9 files changed
+70 -36

No files matched your search

+2 -2
View File
@@ -273,7 +273,7 @@ func (w *Worker) handleProxy(listenerCfg *listenerutil.ListenerConfig, sessionMa
}
// Verify the protocol has a supported proxy before calling RequestAuthorizeConnection
handleProxyFn, err := proxyHandlers.GetHandler(endpointUrl.Scheme)
handleProxyFn, err := proxyHandlers.GetHandler(workerId, ci.GetProtocolContext())
if err != nil {
conn.Close(proxyHandlers.WebsocketStatusProtocolSetupError, "unable to get proxy handler")
event.WriteError(ctx, op, err)
@@ -306,7 +306,7 @@ func (w *Worker) handleProxy(listenerCfg *listenerutil.ListenerConfig, sessionMa
return
}
runProxy()
runProxy(ctx)
}, nil
}