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 | fde32d4a1a3d036ec720e4c9986afe7fece3de61 (patch) | |
tree | abae75e9ab99377c83e1061015bed2aa03acc74f /src/c_parse.go | |
parent | go (diff) | |
download | hardflip-fde32d4a1a3d036ec720e4c9986afe7fece3de61.tar.gz hardflip-fde32d4a1a3d036ec720e4c9986afe7fece3de61.tar.bz2 hardflip-fde32d4a1a3d036ec720e4c9986afe7fece3de61.tar.xz hardflip-fde32d4a1a3d036ec720e4c9986afe7fece3de61.tar.zst hardflip-fde32d4a1a3d036ec720e4c9986afe7fece3de61.zip |
better jump
Diffstat (limited to 'src/c_parse.go')
-rw-r--r-- | src/c_parse.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/c_parse.go b/src/c_parse.go index a032381..3f71f99 100644 --- a/src/c_parse.go +++ b/src/c_parse.go @@ -94,12 +94,12 @@ func c_read_yaml_file(file string, ui *HardUI) (*HostNode, error) { if len(host.User) == 0 { host.User = "root" } - if len(host.Jump) > 0 { - if host.JumpPort == 0 { - host.JumpPort = 22 + if len(host.Jump.Host) > 0 { + if host.Jump.Port == 0 { + host.Jump.Port = 22 } - if len(host.JumpUser) == 0 { - host.JumpUser = "root" + if len(host.Jump.User) == 0 { + host.Jump.User = "root" } } } else if host.Protocol == 1 { |