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