summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-06 15:38:40 -0600
committerJeff Carr <[email protected]>2024-01-06 15:38:40 -0600
commit24c72570a54b7aef67494e8cacecb0a896b19886 (patch)
tree012f90f70cb74664b0c65645e2dfbf5b679087ec /main.go
parent34bbd63bfbe39fa17dfa5b00628c966a1776b6cb (diff)
more cleaning
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'main.go')
-rw-r--r--main.go26
1 files changed, 1 insertions, 25 deletions
diff --git a/main.go b/main.go
index d7c6a93..dad92f3 100644
--- a/main.go
+++ b/main.go
@@ -154,38 +154,14 @@ func dnsTTL() {
}
func linuxLoop() {
- me.changed = false
- log.Log(NET, "FQDN =", me.fqdn.GetText())
- duration := timeFunction(getHostname)
- log.Info("getHostname() execution Time: ", duration, "me.changed =", me.changed)
-
- var aaaa []string
- aaaa = dhcpAAAA()
- var all string
- for _, s := range aaaa {
- log.Log(NET, "my actual AAAA = ",s)
- all += s + "\n"
- }
// me.IPv6.SetText(all)
- if (me.changed) {
+ if (me.statusOS.Changed()) {
stamp := time.Now().Format("2006/01/02 15:04:05")
log.Log(CHANGE, "Network things changed on", stamp)
duration := timeFunction(updateDNS)
log.Log(CHANGE, "updateDNS() execution Time: ", duration)
}
-
- /*
- processName := getProcessNameByPort(53)
- fmt.Println("Process with port 53:", processName)
-
- commPath := filepath.Join("/proc", proc.Name(), "comm")
- comm, err := ioutil.ReadFile(commPath)
- if err != nil {
- return "", err // Error reading the process name
- }
- return strings.TrimSpace(string(comm)), nil
- */
}
/*