From fde32d4a1a3d036ec720e4c9986afe7fece3de61 Mon Sep 17 00:00:00 2001 From: Joe Date: Thu, 1 Feb 2024 20:20:20 +0100 Subject: better jump --- src/c_parse.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/c_parse.go') 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 { -- cgit v1.2.3