mirror of
https://github.com/netbirdio/netbird.git
synced 2026-10-08 14:39:09 +02:00
add disk encryption check
This commit is contained in:
@@ -550,6 +550,14 @@ func infoToMetaData(info *system.Info) *proto.PeerSystemMeta {
|
||||
})
|
||||
}
|
||||
|
||||
diskEncryptionVolumes := make([]*proto.DiskEncryptionVolume, 0, len(info.DiskEncryption.Volumes))
|
||||
for _, vol := range info.DiskEncryption.Volumes {
|
||||
diskEncryptionVolumes = append(diskEncryptionVolumes, &proto.DiskEncryptionVolume{
|
||||
Path: vol.Path,
|
||||
Encrypted: vol.Encrypted,
|
||||
})
|
||||
}
|
||||
|
||||
return &proto.PeerSystemMeta{
|
||||
Hostname: info.Hostname,
|
||||
GoOS: info.GoOS,
|
||||
@@ -585,5 +593,8 @@ func infoToMetaData(info *system.Info) *proto.PeerSystemMeta {
|
||||
|
||||
LazyConnectionEnabled: info.LazyConnectionEnabled,
|
||||
},
|
||||
DiskEncryption: &proto.DiskEncryptionInfo{
|
||||
Volumes: diskEncryptionVolumes,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user