mirror of
https://github.com/netbirdio/netbird.git
synced 2025-06-21 10:18:50 +02: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, " ")
|
split := strings.Split(dst[0].Caption, " ")
|
||||||
|
|
||||||
if len(split) < 3 {
|
if len(split) <= 3 {
|
||||||
return "Windows", getBuildVersion()
|
return "Windows", getBuildVersion()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user