aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-05-16 20:20:20 +0200
committerJoe <rbo@gmx.us>2024-05-16 20:20:20 +0200
commit7044a8401dcb9e20b35cb0eb5cb66d06094d2fc1 (patch)
tree2db1c0298e33d2d6a47e4774fe249a9ec801394c
parentfix (diff)
downloadhardflip-7044a8401dcb9e20b35cb0eb5cb66d06094d2fc1.tar.gz
hardflip-7044a8401dcb9e20b35cb0eb5cb66d06094d2fc1.tar.bz2
hardflip-7044a8401dcb9e20b35cb0eb5cb66d06094d2fc1.tar.xz
hardflip-7044a8401dcb9e20b35cb0eb5cb66d06094d2fc1.tar.zst
hardflip-7044a8401dcb9e20b35cb0eb5cb66d06094d2fc1.zip
seems to be good
-rw-r--r--src/e_events.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/e_events.go b/src/e_events.go
index 49cd666..6708a84 100644
--- a/src/e_events.go
+++ b/src/e_events.go
@@ -510,6 +510,8 @@ func e_set_protocol_defaults(data *HardData, in *HostNode) {
switch in.Protocol {
case PROTOCOL_SSH:
in.Port = 22
+ in.Priv = data.opts.DefSSH
+ in.Jump.Priv = data.opts.DefSSH
case PROTOCOL_RDP:
in.Port = 3389
in.Quality = 2
@@ -517,6 +519,7 @@ func e_set_protocol_defaults(data *HardData, in *HostNode) {
in.Height = 1200
in.Dynamic = true
in.drive_keys = nil
+ in.Jump.Priv = data.opts.DefSSH
case PROTOCOL_CMD:
in.Silent = false
in.Shell = []string{"/bin/sh", "-c"}