feat(rdp): perform basic settings exchange and test the proxy fn (#1657)

-----------
Co-authored-by: Danielle Miu <29378233+DanielleMiu@users.noreply.github.com>
This commit is contained in:
Irena RindosandDanielle Miu authored and irenarindos committed 2025-09-02 15:14:09 -04:00
1 parent afe90313cd
commit eaf31ef17a
6 files changed
+49 -5

No files matched your search

+1 -1
View File
@@ -46,7 +46,7 @@ type ProxyConnFn func()
// be nil. If there is no error ProxyConnFn must be set. When Handler has
// returned, it is expected that the initial connection to the endpoint has been
// established.
type Handler func(controlCtx context.Context, dataCtx context.Context, df DecryptFn, c net.Conn, pd *ProxyDialer, connId string, pb *anypb.Any, rm RecordingManager) (ProxyConnFn, error)
type Handler func(controlCtx context.Context, dataCtx context.Context, df DecryptFn, c net.Conn, pd *ProxyDialer, connId string, pb *anypb.Any, rm RecordingManager, opt ...Option) (ProxyConnFn, error)
func RegisterHandler(protocol string, handler Handler) error {
_, loaded := handlers.LoadOrStore(protocol, handler)