summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-04-11 15:24:43 -0500
committerJeff Carr <[email protected]>2023-04-11 15:24:43 -0500
commit9975aefe1e4d2a8828185f75344f0e776ecdeaeb (patch)
tree1542cdcf98fbbeccc3422b551329abcdfbf7c30d /main.go
parentc16bb5b088ce71fd6d032228b505cb5e133fcb3c (diff)
works against gocui
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'main.go')
-rw-r--r--main.go26
1 files changed, 18 insertions, 8 deletions
diff --git a/main.go b/main.go
index 5aedd51..977956c 100644
--- a/main.go
+++ b/main.go
@@ -37,16 +37,25 @@ func main() {
// Example_listLink()
log("Toolkit = ", args.Toolkit)
- // gui.InitPlugins([]string{"andlabs"})
- // gui.SetDebug(true)
- // myGui = gui.Main(initGUI)
- myGui = gui.Start()
+ for i, t := range args.Toolkit {
+ log("trying to load plugin", i, t)
+ gui.LoadPlugin(t)
+ }
+
+ // will set all debugging flags
+ gui.SetDebug(true)
+
+ myGui = gui.New()
sleep(1)
setupControlPanelWindow()
sleep(1)
- myGui.LoadPlugin("gocui")
- // gui.Redraw("gocui")
- sleep(1)
+ // sleep(1)
+ if (args.GuiDebug) {
+ gui.DebugWindow()
+ }
+ gui.ShowDebugValues()
+
+ // forever monitor for network and dns changes
checkNetworkChanges()
}
@@ -70,7 +79,8 @@ func checkNetworkChanges() {
}
}
-// Run this every once and a while
+// This checks for changes to the network settings
+// and verifies that DNS is working or not working
func dnsTTL() {
me.changed = false
log("FQDN =", me.fqdn.GetText())