diff options
| author | Jeff Carr <[email protected]> | 2024-01-07 14:43:17 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-07 14:43:17 -0600 |
| commit | 1decb6925bbde8c6c9015ec603b8ca0b9cdd587b (patch) | |
| tree | 5e1779e6eabe47f22efe825451da73a668d7d7f3 /main.go | |
| parent | c82e88d015adafb3f617e9d3b81e29415173316e (diff) | |
watches for finished setupv0.5.3
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 24 |
1 files changed, 23 insertions, 1 deletions
@@ -95,6 +95,7 @@ func main() { if provider != lastProvider { log.Log(CHANGE, "Your DNS API provider appears to have changed to", provider) lastProvider = provider + me.apiButton.SetText(provider + " wit.com") } if provider == "cloudflare" { me.DnsAPIstatus.Set("WORKING") @@ -102,7 +103,7 @@ func main() { }) // probes the OS network settings - myTicker(500 * time.Millisecond, "me.statusOS,Update()", func() { + go myTicker(500 * time.Millisecond, "me.statusOS,Update()", func() { duration := timeFunction( func() { me.statusOS.Update() @@ -124,6 +125,27 @@ func main() { s := fmt.Sprint(duration) me.statusOS.SetSpeedActual(s) }) + + // check the four known things to see if they are all WORKING + myTicker(3 * time.Second, "MAIN LOOP", func() { + if me.hostnameStatus.GetText() != "WORKING" { + log.Log(CHANGE, "The hostname is not WORKING yet", me.hostnameStatus.GetText()) + return + } + if me.statusIPv6.Get() != "WORKING" { + log.Log(CHANGE, "IPv6 DNS lookup has not been confirmed yet", me.statusIPv6.Get()) + return + } + if me.DnsStatus.GetText() != "WORKING" { + log.Log(CHANGE, "Your IPv6 DNS settings have not been confirmed yet", me.DnsStatus.GetText()) + return + } + if me.DnsAPIstatus.GetText() != "WORKING" { + log.Log(CHANGE, "The DNS API provider is not yet working", me.DnsAPIstatus.GetText()) + return + } + log.Log(CHANGE, "EVERYTHING IS WORKING. YOU HAVE IPv6 BLISS") + }) } /* |
