From 6fa6d6dfc9e5a88e7dff2ed3c148b3b4271f566c Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 28 Dec 2023 09:43:45 -0600 Subject: Detect that a VPN is needed IPv6() returns true if it's working display duration a 'DNS Lookup Status' window actual dig results display status and failure counters count lookup failures and successes add TCP dns lookup logic to test if dns is working at all add DNS over HTTPS cloudflare new & update kind of working holy shit, go.wit.com finally works with git mod tidy working, but cloudflare api stuff is broken AAAA '(none)' logic detection is better cloudflare control panel display the working real AAAA addresses Signed-off-by: Jeff Carr --- examples/cloudflare/main.go | 52 --------------------------------------------- 1 file changed, 52 deletions(-) delete mode 100644 examples/cloudflare/main.go (limited to 'examples/cloudflare/main.go') diff --git a/examples/cloudflare/main.go b/examples/cloudflare/main.go deleted file mode 100644 index 2308478..0000000 --- a/examples/cloudflare/main.go +++ /dev/null @@ -1,52 +0,0 @@ -// This is a simple example -package main - -import ( - "go.wit.com/gui" - "go.wit.com/control-panel-dns/cloudflare" -) - -var title string = "Cloudflare DNS Control Panel" -var outfile string = "/tmp/guilogfile" -var configfile string = ".config/wit/cloudflare" - -var myGui *gui.Node - -// var buttonCounter int = 5 -// var gridW int = 5 -// var gridH int = 3 - -// var mainWindow, more, more2 *gui.Node - -// var cloudflareURL string = "https://api.cloudflare.com/client/v4/zones/" - -/* -var zonedrop *gui.Node -var domainWidget *gui.Node -var masterSave *gui.Node - -var zoneWidget *gui.Node -var authWidget *gui.Node -var emailWidget *gui.Node - -var loadButton *gui.Node -var saveButton *gui.Node -*/ - -func main() { - // parse the config file - readConfig() - - // initialize a new GO GUI instance - myGui = gui.New().Default() - - // draw the cloudflare control panel window - cloudflare.MakeCloudflareWindow(myGui) - - // This is just a optional goroutine to watch that things are alive - gui.Watchdog() - gui.StandardExit() - - // update the config file - saveConfig() -} -- cgit v1.2.3