diff options
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 24 |
1 files changed, 5 insertions, 19 deletions
@@ -47,9 +47,10 @@ func main() { // log.Sleep(me.artificialSleep) // setupControlPanelWindow() // setup the main tab - mainWindow("DNS and IPv6 Control Panel") + setupControlPanelWindow("DNS and IPv6 Control Panel") debugTab("Debug") - me.window.Show() + + // TODO: track this bug down log.Sleep(1) me.window.Toggle() log.Sleep(1) @@ -67,26 +68,11 @@ func main() { }() } - log.Sleep(me.artificialSleep) + digLoop() // TCP & UDP port 53 lookups + DNS over HTTP lookups + os.Exec(dig) go myTicker(60*time.Second, "DNSloop", func() { - me.digStatus.Update() - - if me.digStatus.Ready() { - current := me.statusIPv6.String() - if me.digStatus.IPv6() { - if current != "WORKING" { - log.Log(CHANGE, "IPv6 resolution is WORKING") - me.statusIPv6.SetText("WORKING") - } - } else { - if current != "Need VPN" { - log.Log(CHANGE, "IPv6 resolution seems to have broken") - me.statusIPv6.SetText("Need VPN") - } - } - } + digLoop() }) // checks if your DNS records are still broken |
