mirror of
https://github.com/netbirdio/netbird.git
synced 2025-01-23 22:38:36 +01:00
[client] Fix windows info out of bounds panic (#3196)
This commit is contained in:
parent
481bbe8513
commit
3e9f0d57ac
@ -105,7 +105,7 @@ func getOSNameAndVersion() (string, string) {
|
||||
|
||||
split := strings.Split(dst[0].Caption, " ")
|
||||
|
||||
if len(split) < 3 {
|
||||
if len(split) <= 3 {
|
||||
return "Windows", getBuildVersion()
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user