From 81abbf76338e5b5ab1f8f8960627442cb6801911 Mon Sep 17 00:00:00 2001 From: Bolke de Bruin <bolke@xs4all.nl> Date: Thu, 6 Oct 2022 09:36:33 +0200 Subject: [PATCH] Fix code --- cmd/rdpgw/web/web.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/rdpgw/web/web.go b/cmd/rdpgw/web/web.go index e2b5988..4db4a90 100644 --- a/cmd/rdpgw/web/web.go +++ b/cmd/rdpgw/web/web.go @@ -201,13 +201,13 @@ func (h *Handler) HandleDownload(w http.ResponseWriter, r *http.Request) { rdp.Connection.Domain = domain rdp.Connection.FullAddress = host rdp.Connection.GatewayHostname = h.gatewayAddress.Host - rdp.Connection.GatewayCredentialSource = SourceCookie + rdp.Connection.GatewayCredentialsSource = SourceCookie rdp.Connection.GatewayAccessToken = token rdp.Session.NetworkAutodetect = opts.NetworkAutoDetect != 0 rdp.Session.BandwidthAutodetect = opts.BandwidthAutoDetect != 0 rdp.Session.ConnectionType = opts.ConnectionType rdp.Display.SmartSizing = true rdp.Display.BitmapCacheSize = 32000 - + http.ServeContent(w, r, fn, time.Now(), strings.NewReader(rdp.String())) } -- GitLab