1
0
mirror of https://github.com/netbirdio/netbird.git synced 2025-03-06 10:51:18 +01:00
netbird/client/system/sysinfo_linux.go
Zoltan Papp 0c8f8a62c7
Handling invalid UTF-8 character in sys info ()
In some operation systems, the sys info contains invalid characters.
In this patch try to keep the original fallback logic but filter out the cases when the character is invalid.
2024-08-01 16:46:55 +02:00

13 lines
219 B
Go

package system
// SysInfo used to moc out the sysinfo getter
type SysInfo struct {
ChassisSerial string
ProductSerial string
BoardSerial string
ProductName string
BoardName string
ProductVendor string
}