summaryrefslogtreecommitdiff
path: root/hostnameStatus.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 /hostnameStatus.go
parent53fbb4cb85ffe7be05aedfcb40a17bf8d15560ad (diff)
knows which AAAA records are broken!
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'hostnameStatus.go')
-rw-r--r--hostnameStatus.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/hostnameStatus.go b/hostnameStatus.go
index 4701b33..d7568aa 100644
--- a/hostnameStatus.go
+++ b/hostnameStatus.go
@@ -40,6 +40,7 @@ type hostnameStatus struct {
// what the current IP address your network has given you
currentIPv4 *gadgets.OneLiner
currentIPv6 *gadgets.OneLiner
+ currentAAAA string
// what the DNS servers have
NSrr *gadgets.OneLiner
@@ -279,9 +280,9 @@ func (hs *hostnameStatus) missingAAAA() bool {
}
*/
-func (hs *hostnameStatus) GetIPv6dns() []string {
- tmp := hs.dnsAAAA.Get()
- return strings.Split(tmp, "\n")
+func (hs *hostnameStatus) GetIPv6() []string {
+ if ! hs.Ready() { return nil}
+ return strings.Split(hs.currentAAAA, "\n")
}
func (hs *hostnameStatus) updateStatus() {
@@ -314,7 +315,7 @@ func (hs *hostnameStatus) updateStatus() {
// hs.dnsAction.SetText("DELETE")
}
}
- hs.set(hs.dnsAAAA, s)
+ hs.currentAAAA = strings.Join(vals, "\n")
vals = lookupDoH(me.statusOS.GetHostname(), "A")
log.Log(STATUS, "IPv4 Addresses for ", me.statusOS.GetHostname(), "=", vals)