aboutsummaryrefslogtreecommitdiffstats
path: root/src/c_lhosts.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/c_lhosts.go')
-rw-r--r--src/c_lhosts.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/c_lhosts.go b/src/c_lhosts.go
index 4548d4e..009febf 100644
--- a/src/c_lhosts.go
+++ b/src/c_lhosts.go
@@ -161,10 +161,10 @@ func (lhost *HostList) count() int {
func (host *HostNode) protocol_str() string {
switch host.Protocol {
- case 0: return "SSH"
- case 1: return "RDP"
- case 2: return "Single command"
- case 3: return "OpenStack CLI"
+ case PROTOCOL_SSH: return "SSH"
+ case PROTOCOL_RDP: return "RDP"
+ case PROTOCOL_CMD: return "Single command"
+ case PROTOCOL_OS: return "OpenStack CLI"
default: return ""
}
}