diff options
author | Joe <rbo@gmx.us> | 2024-02-01 20:20:20 +0100 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2024-02-01 20:20:20 +0100 |
commit | 1dd26784788b3351271943ba3b080928db0cd9f5 (patch) | |
tree | 0bbec66a58423d8ec4bc2b9b0a562f961cbbc0d1 | |
parent | road (diff) | |
download | hardflip-1dd26784788b3351271943ba3b080928db0cd9f5.tar.gz hardflip-1dd26784788b3351271943ba3b080928db0cd9f5.tar.bz2 hardflip-1dd26784788b3351271943ba3b080928db0cd9f5.tar.xz hardflip-1dd26784788b3351271943ba3b080928db0cd9f5.tar.zst hardflip-1dd26784788b3351271943ba3b080928db0cd9f5.zip |
ye
Diffstat (limited to '')
-rw-r--r-- | src/c_exec.go | 7 | ||||
-rw-r--r-- | src/c_lhosts.go | 6 |
2 files changed, 9 insertions, 4 deletions
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", diff --git a/src/c_lhosts.go b/src/c_lhosts.go index 529b7d5..626e7b3 100644 --- a/src/c_lhosts.go +++ b/src/c_lhosts.go @@ -43,7 +43,7 @@ * POSSIBILITY OF SUCH DAMAGE. * * hardflip: src/c_lhosts.go - * Tue Jan 09 12:59:11 2024 + * Thu Feb 01 16:22:33 2024 * Joe * * the hosts linked list @@ -52,7 +52,7 @@ package main type JumpSettings struct { - Host string `yaml:"host"` + Host string `yaml:"host"` Port uint16 `yaml:"port"` User string `yaml:"user"` Pass string `yaml:"pass"` @@ -76,7 +76,7 @@ type HostNode struct { Height uint16 `yaml:"height"` Dynamic bool `yaml:"dynamic"` Note string `yaml:"note"` - // TODO: rdp drive + Drive map[string]string `yaml:"drive"` Filename string Parent *DirsNode next *HostNode |