From 7a7b4b2ae49615361f8b033d5993adf7f328b742 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 6 Jan 2024 19:58:58 -0600 Subject: [PATCH] knows which AAAA records are broken! Signed-off-by: Jeff Carr --- linuxstatus/hostname.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/linuxstatus/hostname.go b/linuxstatus/hostname.go index 63ab817..d31299f 100644 --- a/linuxstatus/hostname.go +++ b/linuxstatus/hostname.go @@ -65,7 +65,8 @@ func (ls *LinuxStatus) setHostShort() { } } -func (ls *LinuxStatus) GetIPv6os() []string { +func (ls *LinuxStatus) GetIPv6() []string { + if ! me.Ready() {return nil} tmp := me.workingIPv6.Get() return strings.Split(tmp, "\n") }