diff options
| author | Jeff Carr <[email protected]> | 2024-01-07 11:23:51 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-07 11:23:51 -0600 |
| commit | 937f77b3558702a2e0ff76fbb1a8ef91242302c8 (patch) | |
| tree | b87f038e9605ea345faaf5cde6fc73ca0c3f4e29 /gui.go | |
| parent | ef6eb7a96aa4aee7c16ba5e7320bde4ffd79acc0 (diff) | |
delete works
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'gui.go')
| -rw-r--r-- | gui.go | 34 |
1 files changed, 1 insertions, 33 deletions
@@ -69,7 +69,7 @@ func mainWindow(title string) { gr := me.window.Box().NewGroup("dns update") // This is where you figure out what to do next to fix the problems - me.fixButton = gr.NewButton("fix", func () { + me.fixButton = gr.NewButton("Check Errors", func () { if ! fix() { log.Log(CHANGE, "boo. IPv6 isn't working yet") return @@ -80,7 +80,6 @@ func mainWindow(title string) { // me.hostname.Set(hostname) me.hostnameStatus.Set("WORKING") me.DnsStatus.Set("WORKING") - // me.fixButton.Disable() }) statusGrid(me.window.Box()) @@ -155,33 +154,6 @@ func updateDNS() { me.digStatus.Update() me.statusDNS.Update() - // log.Println("digAAAA()") - - /* - if me.statusOS.ValidHostname() { - var aaaa []string - h := me.statusOS.GetHostname() - aaaa = digAAAA(h) - log.Log(INFO, "digAAAA() for", h, "=", aaaa) - - // log.Println(SPEW, me) - if (aaaa == nil) { - log.Warn("There are no DNS AAAA records for hostname: ", h) - // me.DnsAAAA.Set("(none)") - if (cloudflare.CFdialog.TypeNode != nil) { - cloudflare.CFdialog.TypeNode.SetText("AAAA new") - } - - if (cloudflare.CFdialog.NameNode != nil) { - cloudflare.CFdialog.NameNode.SetText(h) - } - - } - } - */ - // status := displayDNS() // update the GUI based on dig results - // me.DnsStatus.SetText(status) - if me.digStatus.Ready() { if me.digStatus.IPv6() { me.statusIPv6.Set("IPv6 WORKING") @@ -190,10 +162,6 @@ func updateDNS() { } } - - // me.fix.Enable() - - // lookup the NS records for your domain // if your host is test.wit.com, find the NS resource records for wit.com lookupNS(me.statusOS.GetDomainName()) |
