summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-03-25 19:02:49 -0500
committerJeff Carr <[email protected]>2023-03-25 19:02:49 -0500
commite254a389f11de11ed204d14f6ae90441cc06fc36 (patch)
tree2f9601f2afe665c1472f9eaf5c6c992faaadee85 /main.go
parenta8285c19c84f752dee445a56261738f4502a6971 (diff)
This works
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'main.go')
-rw-r--r--main.go9
1 files changed, 7 insertions, 2 deletions
diff --git a/main.go b/main.go
index 92fb100..1a232e1 100644
--- a/main.go
+++ b/main.go
@@ -13,6 +13,7 @@ import (
)
var p *arg.Parser
+var myGui *gui.Node
func main() {
p = arg.MustParse(&args)
@@ -24,7 +25,6 @@ func main() {
me.ifmap = make(map[int]*IFtype)
me.dnsTTL = 5 // recheck DNS is working every 2 minutes // TODO: watch rx packets?
- go checkNetworkChanges()
log()
log(true, "this is true")
@@ -41,7 +41,12 @@ func main() {
log("Toolkit = ", args.Toolkit)
// gui.InitPlugins([]string{"andlabs"})
// gui.SetDebug(true)
- gui.Main(initGUI)
+ // myGui = gui.Main(initGUI)
+ myGui = gui.Start()
+ sleep(1)
+ initGUI()
+ sleep(1)
+ checkNetworkChanges()
}
/*