From 93aed08e521c7d96d3c53f207fb650b449cdb12c Mon Sep 17 00:00:00 2001 From: joe Date: Tue, 26 Aug 2025 19:24:18 +0200 Subject: fixed all errs and some other things --- src/c_exec.go | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'src/c_exec.go') diff --git a/src/c_exec.go b/src/c_exec.go index aa297ea..6d42b29 100644 --- a/src/c_exec.go +++ b/src/c_exec.go @@ -43,7 +43,7 @@ * POSSIBILITY OF SUCH DAMAGE. * * hardflip: src/c_exec.go - * Tue Apr 23 17:47:58 2024 + * Tue, 26 Aug 2025 19:17:04 +0200 * Joe * * exec the command at some point @@ -104,7 +104,10 @@ func c_format_ssh(host *HostNode, pass string) ([]string, []string) { cmd_fmt = append(cmd_fmt, "sshpass", "-p", pass) } - cmd_fmt = append(cmd_fmt, "ssh", "-F", "none") + cmd_fmt = append(cmd_fmt, "ssh", "-F", "none", + "-o", "StrictHostKeyChecking=no", + "-o", "UserKnownHostsFile=/dev/null", + "-o", "LogLevel=ERROR") if len(host.Priv) > 0 { cmd_fmt = append(cmd_fmt, "-i", host.Priv) } @@ -157,13 +160,13 @@ func c_format_rdp(host *HostNode, pass string) ([]string, []string) { cmd_fmt = append(cmd_fmt, "/drive:" + share + "," + path) } } - if host.Quality == 0 { + switch host.Quality { + case 0: cmd_fmt = append(cmd_fmt, "-aero", "-menu-anims", "-window-drag", "-wallpaper", "-decorations", "-fonts", "-themes", "/bpp:8", "/compression-level:2") - } else if host.Quality == 1 { - } else if host.Quality == 2 { + case 2: cmd_fmt = append(cmd_fmt, "+aero", "+menu-anims", "+window-drag", "+decorations", "+fonts", "+themes", "/gfx:RFX", "/rfx", "/gdi:hw", -- cgit v1.2.3