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_lhosts.go | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'src/c_lhosts.go') diff --git a/src/c_lhosts.go b/src/c_lhosts.go index e0ad58c..529b7d5 100644 --- a/src/c_lhosts.go +++ b/src/c_lhosts.go @@ -51,6 +51,14 @@ package main +type JumpSettings struct { + Host string `yaml:"host"` + Port uint16 `yaml:"port"` + User string `yaml:"user"` + Pass string `yaml:"pass"` + Priv string `yaml:"priv"` +} + // 0: ssh // 1: rdp type HostNode struct { @@ -61,11 +69,7 @@ type HostNode struct { User string `yaml:"user"` Pass string `yaml:"pass"` Priv string `yaml:"priv"` - Jump string `yaml:"jump"` - JumpPort uint16 `yaml:"jump_port"` - JumpUser string `yaml:"jump_user"` - JumpPass string `yaml:"jump_pass"` - JumpPriv string `yaml:"jump_priv"` + Jump JumpSettings `yaml:"jump"` Quality uint8 `yaml:"quality"` Domain string `yaml:"domain"` Width uint16 `yaml:"width"` -- cgit v1.2.3