diff --git a/cmd/rdpgw/web/web.go b/cmd/rdpgw/web/web.go index e2b59883ffcac4c7b2de8c7f59cba51763a1a3c4..4db4a906aaebe210d0eaef9e290709d1ce14d34b 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())) }