trim linefeeds

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2023-03-26 16:49:56 -05:00
parent 35ae17e15c
commit d03ca57c3a
1 changed files with 4 additions and 0 deletions

4
net.go
View File

@ -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)
}