summaryrefslogtreecommitdiff
path: root/net.go
diff options
context:
space:
mode:
Diffstat (limited to 'net.go')
-rw-r--r--net.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/net.go b/net.go
index 0c80790..a519fa1 100644
--- a/net.go
+++ b/net.go
@@ -225,6 +225,10 @@ func scanInterfaces() {
all6 += s + "\n"
}
}
+ all4 = strings.TrimSuffix(all4, "\r\n")
+ all4 = strings.TrimSuffix(all4, "\n")
+ all6 = strings.TrimSuffix(all6, "\r\n")
+ all6 = strings.TrimSuffix(all6, "\n")
me.IPv4.SetText(all4)
me.IPv6.SetText(all6)
}