summaryrefslogtreecommitdiff
path: root/gui.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-06 17:51:41 -0600
committerJeff Carr <[email protected]>2024-01-06 17:51:41 -0600
commit0148cec0b28d88f348b88b54ddd9dcbc7c71c823 (patch)
treeae1741261377d339779266beb862d1ef59dc2e36 /gui.go
parent15d9f9769360b1cb8c748de8ee995030ade5eb35 (diff)
purge years of old test code
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'gui.go')
-rw-r--r--gui.go40
1 files changed, 22 insertions, 18 deletions
diff --git a/gui.go b/gui.go
index 8f7838e..9413deb 100644
--- a/gui.go
+++ b/gui.go
@@ -50,7 +50,7 @@ func debugTab(title string) {
})
g2.NewButton("getProcessNameByPort()", func () {
- processName := getProcessNameByPort(53)
+ processName := linuxstatus.GetProcessNameByPort(53)
log.Info("Process with port 53:", processName)
})
@@ -70,6 +70,7 @@ func debugTab(title string) {
me.debug.Hide()
}
+/*
// will return a AAAA value that needs to be deleted
func deleteAAA() string {
var aaaa []string
@@ -93,6 +94,7 @@ func missingAAAA() string {
}
return ""
}
+*/
// doesn't actually do any network traffic
// it just updates the GUI
@@ -116,7 +118,7 @@ func displayDNS() string {
}
var a []string
- a = realA()
+ a = append(a, "fixme")
all = sortLines(strings.Join(a, "\n"))
if (all == "") {
log.Log(NOW, "THERE IS NOT a real A DNS ENTRY")
@@ -265,28 +267,30 @@ func updateDNS() {
cloudflare.CFdialog.NameNode.SetText(h)
}
+ /*
d := deleteAAA()
if (d != "") {
if (cloudflare.CFdialog.ValueNode != nil) {
cloudflare.CFdialog.ValueNode.SetText(d)
}
}
- m := missingAAAA()
- if (m != "") {
- if (cloudflare.CFdialog.ValueNode != nil) {
- cloudflare.CFdialog.ValueNode.SetText(m)
- }
- /*
- rr := &cloudflare.RRT{
- Type: "AAAA",
- Name: me.hostname,
- Ttl: "Auto",
- Proxied: false,
- Content: m,
- }
- cloudflare.Update(rr)
- */
- }
+ */
+// m := missingAAAA()
+// if (m != "") {
+// if (cloudflare.CFdialog.ValueNode != nil) {
+// cloudflare.CFdialog.ValueNode.SetText(m)
+// }
+// /*
+// rr := &cloudflare.RRT{
+// Type: "AAAA",
+// Name: me.hostname,
+// Ttl: "Auto",
+// Proxied: false,
+// Content: m,
+// }
+// cloudflare.Update(rr)
+// */
+// }
}
}
status := displayDNS() // update the GUI based on dig results