summaryrefslogtreecommitdiff
path: root/gui.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-06 16:59:33 -0600
committerJeff Carr <[email protected]>2024-01-06 16:59:33 -0600
commit15d9f9769360b1cb8c748de8ee995030ade5eb35 (patch)
tree97f7c9057c284fbb8f9e0428533f2d7b4da85772 /gui.go
parent983517732d9f193771665d8191c58e47028c6670 (diff)
all engines running and stable
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'gui.go')
-rw-r--r--gui.go12
1 files changed, 3 insertions, 9 deletions
diff --git a/gui.go b/gui.go
index 37cfa2f..8f7838e 100644
--- a/gui.go
+++ b/gui.go
@@ -38,10 +38,6 @@ func debugTab(title string) {
debugger.DebugWindow(me.myGui)
})
- g2.NewButton("getHostname() looks at the OS settings", func () {
- getHostname()
- })
-
g2.NewButton("dig A & AAAA DNS records", func () {
log.Println("updateDNS()")
updateDNS()
@@ -146,9 +142,7 @@ func mainWindow(title string) {
grid.SetNext(1,1)
- grid.NewLabel("hostname =")
- me.fqdn = grid.NewLabel("?")
-
+ me.hostname = gadgets.NewOneLiner(grid, "hostname =").Set("unknown")
me.DnsAAAA = gadgets.NewOneLiner(grid, "DNS AAAA =").Set("unknown")
grid.NewLabel("DNS A =")
@@ -253,9 +247,9 @@ func updateDNS() {
// log.Println("digAAAA()")
- if me.status.ValidHostname() {
+ if me.statusOS.ValidHostname() {
var aaaa []string
- h := me.status.GetHostname()
+ h := me.statusOS.GetHostname()
aaaa = digAAAA(h)
log.Log(NOW, "digAAAA() for", h, "=", aaaa)