clean output

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2023-03-26 21:29:38 -05:00
parent 81cb8bad80
commit 91787b9121
2 changed files with 5 additions and 6 deletions

View File

@ -26,8 +26,6 @@ func getHostname() {
return return
} }
if (me.fqdn != nil) { if (me.fqdn != nil) {
// s = me.fqdn.GetText()
log("trying to update gui.Label")
if (me.hostname != s) { if (me.hostname != s) {
me.fqdn.SetText(s) me.fqdn.SetText(s)
me.hostname = s me.hostname = s

9
net.go
View File

@ -216,13 +216,14 @@ func scanInterfaces() {
var all4 string var all4 string
var all6 string var all6 string
for s, t := range me.ipmap { for s, t := range me.ipmap {
log("HAVE name =", s, "IPv4 =", t.ipv4)
log("HAVE name =", s, "IPv6 =", t.ipv6)
if (t.ipv4) { if (t.ipv4) {
all4 += s + "\n" all4 += s + "\n"
} log("IPv4 =", s)
if (t.ipv6) { } else if (t.ipv6) {
all6 += s + "\n" all6 += s + "\n"
log("IPv6 =", s)
} else {
log("???? =", s)
} }
} }
all4 = strings.TrimSpace(all4) all4 = strings.TrimSpace(all4)