summaryrefslogtreecommitdiff
path: root/linuxstatus/hostname.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-06 19:00:51 -0600
committerJeff Carr <[email protected]>2024-01-06 19:00:51 -0600
commit39a32b39333fea86eee130cc493acbc56f6e33a7 (patch)
tree0c199281ab36406469d67e89ac289e7542d71c60 /linuxstatus/hostname.go
parent1191d1548470a7ed1049f1d78de6f17b77e0d36d (diff)
ready to compare host and dns AAAA values
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'linuxstatus/hostname.go')
-rw-r--r--linuxstatus/hostname.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/linuxstatus/hostname.go b/linuxstatus/hostname.go
index e9ac5f4..63ab817 100644
--- a/linuxstatus/hostname.go
+++ b/linuxstatus/hostname.go
@@ -3,6 +3,7 @@
package linuxstatus
import (
+ "strings"
"go.wit.com/log"
"go.wit.com/shell"
@@ -64,6 +65,11 @@ func (ls *LinuxStatus) setHostShort() {
}
}
+func (ls *LinuxStatus) GetIPv6os() []string {
+ tmp := me.workingIPv6.Get()
+ return strings.Split(tmp, "\n")
+}
+
func lookupHostname() {
if ! me.Ready() {return}
var err error