Skip to content

Commit

Permalink
Use PeerMeta.OsVersion in checks
Browse files Browse the repository at this point in the history
  • Loading branch information
surik committed Jan 26, 2024
1 parent 702a0e0 commit e429d8a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions management/server/posture/os_version.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ func (c *OSVersionCheck) Check(peer nbpeer.Peer) (bool, error) {
peerGoOS := peer.Meta.GoOS
switch peerGoOS {
case "android":
return checkMinVersion(peerGoOS, peer.Meta.Core, c.Android)
return checkMinVersion(peerGoOS, peer.Meta.OSVersion, c.Android)
case "darwin":
return checkMinVersion(peerGoOS, peer.Meta.Core, c.Darwin)
return checkMinVersion(peerGoOS, peer.Meta.OSVersion, c.Darwin)
case "ios":
return checkMinVersion(peerGoOS, peer.Meta.Core, c.Ios)
return checkMinVersion(peerGoOS, peer.Meta.OSVersion, c.Ios)
case "linux":
return checkMinKernelVersion(peerGoOS, peer.Meta.KernelVersion, c.Linux)
case "windows":
Expand Down

0 comments on commit e429d8a

Please sign in to comment.