From ec60852283708d48d9174a828d7ce649be6699da Mon Sep 17 00:00:00 2001 From: Joe Date: Tue, 26 Dec 2023 20:20:20 +0100 Subject: must rewrite ui --- c_exec.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'c_exec.go') diff --git a/c_exec.go b/c_exec.go index 02b5342..494f485 100644 --- a/c_exec.go +++ b/c_exec.go @@ -136,11 +136,11 @@ func c_format_cmd(id uint64, lhost *HostList) { if host == nil { c_die("host id not found", nil) } - if host.Type == 0 { + if host.Protocol == 0 { cmd_fmt = c_format_ssh(host) - } else if host.Type == 1 { + } else if host.Protocol == 1 { cmd_fmt = c_format_rdp(host) - } else if host.Type > 1 { + } else if host.Protocol > 1 { c_die("type not found", nil) } c_exec_cmd(cmd_fmt) -- cgit v1.2.3