From b8991ccf586159044c6a17b87654f10860fd22cb Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 6 Jan 2024 14:57:51 -0600 Subject: old window is nearly deprecated Signed-off-by: Jeff Carr --- linuxstatus/linuxloop.go | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'linuxstatus/linuxloop.go') 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()) -- cgit v1.2.3