summaryrefslogtreecommitdiff
path: root/hostnameStatus.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-06 14:57:51 -0600
committerJeff Carr <[email protected]>2024-01-06 14:57:51 -0600
commit5dee2af78434191a27987acfb02902a11f81067c (patch)
tree43e9877f72f3a575c68c3e6648ab4928ecf511cb /hostnameStatus.go
parentba3d5a3cb24429692a1d799e73a9d53cc798212e (diff)
old window is nearly deprecated
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'hostnameStatus.go')
-rw-r--r--hostnameStatus.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/hostnameStatus.go b/hostnameStatus.go
index 87347db..4e8bb14 100644
--- a/hostnameStatus.go
+++ b/hostnameStatus.go
@@ -42,6 +42,7 @@ type hostnameStatus struct {
currentIPv6 *gadgets.OneLiner
// what the DNS servers have
+ NSrr *gadgets.OneLiner
dnsA *gadgets.OneLiner
dnsAAAA *gadgets.OneLiner
dnsAPI *gadgets.OneLiner
@@ -84,6 +85,7 @@ func NewHostnameStatusWindow(p *gui.Node) *hostnameStatus {
hs.currentIPv4 = gadgets.NewOneLiner(grid, "Current IPv4")
hs.currentIPv6 = gadgets.NewOneLiner(grid, "Current IPv6")
+ hs.NSrr = gadgets.NewOneLiner(grid, "dns NS records").Set("unknown")
hs.dnsAPI = gadgets.NewOneLiner(grid, "dns API provider").Set("unknown")
hs.dnsA = gadgets.NewOneLiner(grid, "dns IPv4 resource records").Set("unknown")
hs.dnsAAAA = gadgets.NewOneLiner(grid, "dns IPv6 resource records").Set("unknown")
@@ -339,8 +341,10 @@ func (hs *hostnameStatus) updateStatus() {
}
}
- hs.currentIPv4.Set(me.IPv4.S)
- hs.currentIPv6.Set(me.IPv6.S)
+ // hs.currentIPv4.Set(me.IPv4.S)
+ // hs.currentIPv6.Set(me.IPv6.S)
+ hs.currentIPv4.Set("get this from linuxStatus")
+ hs.currentIPv6.Set("get this from linuxStatus")
if hs.IPv4() && hs.IPv6() {
hs.status.Set("GOOD")