From a5c130f8f7e675b3c8531485e43baf214379080c Mon Sep 17 00:00:00 2001 From: Joe Date: Fri, 15 Dec 2023 20:20:20 +0100 Subject: gogo --- c_lhosts.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'c_lhosts.go') diff --git a/c_lhosts.go b/c_lhosts.go index 67bb5a2..67a2944 100644 --- a/c_lhosts.go +++ b/c_lhosts.go @@ -52,12 +52,14 @@ package main type HostNode struct { ID uint64 Type int8 `yaml:"type"` + Name string `yaml:"name"` Host string `yaml:"host"` Port uint16 `yaml:"port"` User string `yaml:"user"` Pass string `yaml:"pass"` Jump string `yaml:"jump"` Priv string `yaml:"priv"` + Note string `yaml:"note"` Path string next *HostNode } @@ -83,7 +85,7 @@ func (lhost *HostList) add_back(node *HostNode) { } // removes a host node from the list -func (lhost *HostList) remove(id uint64) { +func (lhost *HostList) del(id uint64) { if lhost.head == nil { return } -- cgit v1.2.3