diff options
| author | Jeff Carr <[email protected]> | 2024-01-06 19:58:58 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-06 19:58:58 -0600 |
| commit | 7a7b4b2ae49615361f8b033d5993adf7f328b742 (patch) | |
| tree | d0c01ae669e4e4ba8d88ca6e6ee1f5a9102f8235 | |
| parent | 39a32b39333fea86eee130cc493acbc56f6e33a7 (diff) | |
knows which AAAA records are broken!
Signed-off-by: Jeff Carr <[email protected]>
| -rw-r--r-- | linuxstatus/hostname.go | 3 |
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") } |
