Skip to content

Commit

Permalink
Enable RDP Resize methods
Browse files Browse the repository at this point in the history
  • Loading branch information
jggoebel committed Jan 11, 2024
1 parent 9d4c1c6 commit 72f7b04
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/shell/shell.go
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,10 @@ func (sp ShellProxy) ConnectGuacFunc(w http.ResponseWriter, r *http.Request) {
q.Set("height", optimalHeight)
q.Set("security", "")

// Resize Method has to be set in order to resize RDP Connections on the fly
// see https://guacamole.apache.org/doc/gug/configuring-guacamole.html#rdp-display-settings
q.Set("resize-method", "display-update")

backendURL += "?" + q.Encode()
//Replace to keep the password out of the logs! Replacing "password=<password>" instead of only "<password>", for cases where the password is short and/or is contained in other parameters
glog.V(6).Infof("Build query " + strings.Replace(backendURL, "password="+password, "password=XXX_PASSWORD_XXX", 1))
Expand Down

0 comments on commit 72f7b04

Please sign in to comment.