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
commitb8991ccf586159044c6a17b87654f10860fd22cb (patch)
tree4543581b5d1c82b8eeb81752e3c63e78321fd547 /linuxstatus/linuxloop.go
parent73811178b515e35b5f13515a2c2130b8a300a870 (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())