summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-03-26 21:29:38 -0500
committerJeff Carr <[email protected]>2023-03-26 21:29:38 -0500
commit91787b9121e68620cb589a403c044b40c1ad3d8d (patch)
tree0b95d368b4251e83926d64aa423057f4a733dae8
parent81cb8bad80da03ec827ee6befb93b41262f72aa2 (diff)
clean output
Signed-off-by: Jeff Carr <[email protected]>
-rw-r--r--hostname.go2
-rw-r--r--net.go9
2 files changed, 5 insertions, 6 deletions
diff --git a/hostname.go b/hostname.go
index 0690c2e..f035511 100644
--- a/hostname.go
+++ b/hostname.go
@@ -26,8 +26,6 @@ func getHostname() {
return
}
if (me.fqdn != nil) {
- // s = me.fqdn.GetText()
- log("trying to update gui.Label")
if (me.hostname != s) {
me.fqdn.SetText(s)
me.hostname = s
diff --git a/net.go b/net.go
index 0efa6c0..58970e4 100644
--- a/net.go
+++ b/net.go
@@ -216,13 +216,14 @@ func scanInterfaces() {
var all4 string
var all6 string
for s, t := range me.ipmap {
- log("HAVE name =", s, "IPv4 =", t.ipv4)
- log("HAVE name =", s, "IPv6 =", t.ipv6)
if (t.ipv4) {
all4 += s + "\n"
- }
- if (t.ipv6) {
+ log("IPv4 =", s)
+ } else if (t.ipv6) {
all6 += s + "\n"
+ log("IPv6 =", s)
+ } else {
+ log("???? =", s)
}
}
all4 = strings.TrimSpace(all4)