From 39a32b39333fea86eee130cc493acbc56f6e33a7 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 6 Jan 2024 19:00:51 -0600 Subject: [PATCH] ready to compare host and dns AAAA values Signed-off-by: Jeff Carr --- linuxstatus/hostname.go | 6 ++++++ 1 file changed, 6 insertions(+) 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