summaryrefslogtreecommitdiff
path: root/gui.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-07 11:23:51 -0600
committerJeff Carr <[email protected]>2024-01-07 11:23:51 -0600
commit937f77b3558702a2e0ff76fbb1a8ef91242302c8 (patch)
treeb87f038e9605ea345faaf5cde6fc73ca0c3f4e29 /gui.go
parentef6eb7a96aa4aee7c16ba5e7320bde4ffd79acc0 (diff)
delete works
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'gui.go')
-rw-r--r--gui.go34
1 files changed, 1 insertions, 33 deletions
diff --git a/gui.go b/gui.go
index 4746f20..dd93c5c 100644
--- a/gui.go
+++ b/gui.go
@@ -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())