diff options
author | Joe <rbo@gmx.us> | 2023-12-26 20:20:20 +0100 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2023-12-26 20:20:20 +0100 |
commit | ec60852283708d48d9174a828d7ce649be6699da (patch) | |
tree | 4584e4addf31bf24cd50fac3eeee170f92524901 /c_exec.go | |
parent | good id (diff) | |
download | hardflip-ec60852283708d48d9174a828d7ce649be6699da.tar.gz hardflip-ec60852283708d48d9174a828d7ce649be6699da.tar.bz2 hardflip-ec60852283708d48d9174a828d7ce649be6699da.tar.xz hardflip-ec60852283708d48d9174a828d7ce649be6699da.tar.zst hardflip-ec60852283708d48d9174a828d7ce649be6699da.zip |
must rewrite ui
Diffstat (limited to '')
-rw-r--r-- | c_exec.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) |