TrimSpace()

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

6
net.go
View File

@ -225,10 +225,8 @@ func scanInterfaces() {
all6 += s + "\n" all6 += s + "\n"
} }
} }
all4 = strings.TrimSuffix(all4, "\r\n") all4 = strings.TrimSpace(all4)
all4 = strings.TrimSuffix(all4, "\n") all6 = strings.TrimSpace(all6)
all6 = strings.TrimSuffix(all6, "\r\n")
all6 = strings.TrimSuffix(all6, "\n")
me.IPv4.SetText(all4) me.IPv4.SetText(all4)
me.IPv6.SetText(all6) me.IPv6.SetText(all6)
} }