summaryrefslogtreecommitdiff
path: root/linuxstatus/linuxloop.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-06 14:57:51 -0600
committerJeff Carr <[email protected]>2024-01-06 14:57:51 -0600
commit5dee2af78434191a27987acfb02902a11f81067c (patch)
tree43e9877f72f3a575c68c3e6648ab4928ecf511cb /linuxstatus/linuxloop.go
parentba3d5a3cb24429692a1d799e73a9d53cc798212e (diff)
old window is nearly deprecated
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'linuxstatus/linuxloop.go')
-rw-r--r--linuxstatus/linuxloop.go13
1 files changed, 5 insertions, 8 deletions
diff --git a/linuxstatus/linuxloop.go b/linuxstatus/linuxloop.go
index ba981aa..b2572d1 100644
--- a/linuxstatus/linuxloop.go
+++ b/linuxstatus/linuxloop.go
@@ -8,6 +8,7 @@ import (
"os"
"os/user"
"strconv"
+ "strings"
"go.wit.com/log"
)
@@ -23,14 +24,10 @@ func linuxLoop() {
log.Log(NET, strconv.Itoa(i) + " iface = " + t.iface.Name)
}
- 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)
+ // get all the real AAAA records from all the network interfaces linux can see
+ tmp := strings.Join(realAAAA(), "\n")
+ tmp = sortLines(tmp)
+ me.workingIPv6.Set(tmp)
user, _ := user.Current()
log.Log(INFO, "os.Getuid =", user.Username, os.Getuid())