From 1dd26784788b3351271943ba3b080928db0cd9f5 Mon Sep 17 00:00:00 2001 From: Joe Date: Thu, 1 Feb 2024 20:20:20 +0100 Subject: ye --- src/c_exec.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/c_exec.go') diff --git a/src/c_exec.go b/src/c_exec.go index 46b9939..e8869f2 100644 --- a/src/c_exec.go +++ b/src/c_exec.go @@ -43,7 +43,7 @@ * POSSIBILITY OF SUCH DAMAGE. * * hardflip: src/c_exec.go - * Wed Jan 31 15:23:02 2024 + * Thu Feb 01 16:56:52 2024 * Joe * * exec the command at some point @@ -124,6 +124,11 @@ func c_format_rdp(host *HostNode, pass string) []string { if host.Dynamic == true { cmd_fmt = append(cmd_fmt, "/dynamic-resolution") } + if host.Drive != nil { + for share, path := range host.Drive { + cmd_fmt = append(cmd_fmt, "/drive:" + share + "," + path) + } + } if host.Quality == 0 { cmd_fmt = append(cmd_fmt, "-aero", "-menu-anims", "-window-drag", "-wallpaper", -- cgit v1.2.3