mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-06-20 16:36:03 +08:00
fix(webconsole): rdp enable drive (#18805)
This commit is contained in:
@@ -32,13 +32,17 @@ func NewGuacamoleTunnel(host string, port int, user, password string, id string,
|
||||
}
|
||||
opts.AudioMimetypes = []string{"audio/L16", "rate=44100", "channels=2"}
|
||||
opts.Parameters = map[string]string{
|
||||
"scheme": opts.Protocol,
|
||||
"hostname": host,
|
||||
"port": fmt.Sprintf("%d", port),
|
||||
"ignore-cert": "true",
|
||||
"security": "",
|
||||
"username": user,
|
||||
"password": password,
|
||||
"scheme": opts.Protocol,
|
||||
"hostname": host,
|
||||
"port": fmt.Sprintf("%d", port),
|
||||
"ignore-cert": "true",
|
||||
"security": "",
|
||||
"username": user,
|
||||
"password": password,
|
||||
"enable-drive": "true",
|
||||
"drive-name": "Cloudpods",
|
||||
"drive-path": "/opt/cloudpods",
|
||||
"create-drive-path": "true",
|
||||
}
|
||||
conn, err := net.Dial("tcp", "127.0.0.1:4822")
|
||||
if err != nil {
|
||||
|
||||
@@ -20,6 +20,7 @@ import (
|
||||
"yunion.io/x/log"
|
||||
)
|
||||
|
||||
//4.args,13.VERSION_1_5_0,8.hostname,4.port,6.domain,8.username,8.password,5.width,6.height,3.dpi,15.initial-program,11.color-depth,13.disable-audio,15.enable-printing,12.printer-name,12.enable-drive,10.drive-name,10.drive-path,17.create-drive-path,16.disable-download,14.disable-upload,7.console,13.console-audio,13.server-layout,8.security,11.ignore-cert,12.disable-auth,10.remote-app,14.remote-app-dir,15.remote-app-args,15.static-channels,11.client-name,16.enable-wallpaper,14.enable-theming,21.enable-font-smoothing,23.enable-full-window-drag,26.enable-desktop-composition,22.enable-menu-animations,22.disable-bitmap-caching,25.disable-offscreen-caching,21.disable-glyph-caching,16.preconnection-id,18.preconnection-blob,8.timezone,11.enable-sftp,13.sftp-hostname,13.sftp-host-key,9.sftp-port,13.sftp-username,13.sftp-password,16.sftp-private-key,15.sftp-passphrase,14.sftp-directory,19.sftp-root-directory,26.sftp-server-alive-interval,21.sftp-disable-download,19.sftp-disable-upload,14.recording-path,14.recording-name,24.recording-exclude-output,23.recording-exclude-mouse,23.recording-exclude-touch,22.recording-include-keys,21.create-recording-path,13.resize-method,18.enable-audio-input,12.enable-touch,9.read-only,16.gateway-hostname,12.gateway-port,14.gateway-domain,16.gateway-username,16.gateway-password,17.load-balance-info,12.disable-copy,13.disable-paste,15.wol-send-packet,12.wol-mac-addr,18.wol-broadcast-addr,12.wol-udp-port,13.wol-wait-time,14.force-lossless,19.normalize-clipboard;
|
||||
func TestInstruction(t *testing.T) {
|
||||
cases := []struct {
|
||||
instructionStr string
|
||||
|
||||
Reference in New Issue
Block a user