summaryrefslogtreecommitdiff
path: root/net.go
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
commit76699a310278d5b52613f0a59a664c9213fa6668 (patch)
treef2ee5cd363b05d0a52063459b62d12ee97047072 /net.go
parentb74c46b031f9183c086d8b82157d7183251461ac (diff)
clean output
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'net.go')
-rw-r--r--net.go9
1 files changed, 5 insertions, 4 deletions
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)