aboutsummaryrefslogtreecommitdiffstats
path: root/src/c_exec.go
diff options
context:
space:
mode:
authorjoe <rbo@gmx.us>2025-08-26 19:24:18 +0200
committerjoe <rbo@gmx.us>2025-08-26 19:24:18 +0200
commit93aed08e521c7d96d3c53f207fb650b449cdb12c (patch)
treed3bf429138004692a36a4a47df137093f1393fc2 /src/c_exec.go
parentfixed (diff)
downloadhardflip-93aed08e521c7d96d3c53f207fb650b449cdb12c.tar.gz
hardflip-93aed08e521c7d96d3c53f207fb650b449cdb12c.tar.bz2
hardflip-93aed08e521c7d96d3c53f207fb650b449cdb12c.tar.xz
hardflip-93aed08e521c7d96d3c53f207fb650b449cdb12c.tar.zst
hardflip-93aed08e521c7d96d3c53f207fb650b449cdb12c.zip
fixed all errs and some other things
Diffstat (limited to '')
-rw-r--r--src/c_exec.go13
1 files changed, 8 insertions, 5 deletions
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",