summaryrefslogtreecommitdiff
path: root/linuxstatus/hostname.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-06 19:58:58 -0600
committerJeff Carr <[email protected]>2024-01-06 19:58:58 -0600
commitcefe15539fc8f9d96a793c1aeea6e806cfc0944c (patch)
tree9569ccb0ca0598f53335c4866c9608323875518b /linuxstatus/hostname.go
parent53fbb4cb85ffe7be05aedfcb40a17bf8d15560ad (diff)
knows which AAAA records are broken!
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'linuxstatus/hostname.go')
-rw-r--r--linuxstatus/hostname.go3
1 files changed, 2 insertions, 1 deletions
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")
}