aboutsummaryrefslogtreecommitdiffstats
path: root/c_exec.go
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2023-12-26 20:20:20 +0100
committerJoe <rbo@gmx.us>2023-12-26 20:20:20 +0100
commitec60852283708d48d9174a828d7ce649be6699da (patch)
tree4584e4addf31bf24cd50fac3eeee170f92524901 /c_exec.go
parentgood id (diff)
downloadhardflip-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.go6
1 files changed, 3 insertions, 3 deletions
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)