aboutsummaryrefslogtreecommitdiffstats
path: root/c_exec.go
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2023-12-18 20:20:20 +0100
committerJoe <rbo@gmx.us>2023-12-18 20:20:20 +0100
commitb34fca8215bc053d1b94559fb5d07e8ab6f41579 (patch)
tree99a71c9a5feb6310568b37a1797598813a9c5a7f /c_exec.go
parentfking good (diff)
downloadhardflip-b34fca8215bc053d1b94559fb5d07e8ab6f41579.tar.gz
hardflip-b34fca8215bc053d1b94559fb5d07e8ab6f41579.tar.bz2
hardflip-b34fca8215bc053d1b94559fb5d07e8ab6f41579.tar.xz
hardflip-b34fca8215bc053d1b94559fb5d07e8ab6f41579.tar.zst
hardflip-b34fca8215bc053d1b94559fb5d07e8ab6f41579.zip
good ssh
Diffstat (limited to 'c_exec.go')
-rw-r--r--c_exec.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/c_exec.go b/c_exec.go
index e759acc..19bd0a0 100644
--- a/c_exec.go
+++ b/c_exec.go
@@ -71,6 +71,9 @@ func format_ssh(host *HostNode) []string {
if len(host.Priv) > 0 {
cmd_fmt = append(cmd_fmt, "-i", host.Priv)
}
+ if len(host.Jump) > 0 {
+ cmd_fmt = append(cmd_fmt, "-J", host.Jump)
+ }
if host.Port != 0 {
cmd_fmt = append(cmd_fmt, "-p", strconv.Itoa(int(host.Port)))
}