mirror of
https://github.com/netbirdio/netbird.git
synced 2026-10-22 21:39:08 +02:00
add disk encryption check
This commit is contained in:
@@ -470,6 +470,16 @@ func extractPeerMeta(ctx context.Context, meta *proto.PeerSystemMeta) nbpeer.Pee
|
||||
})
|
||||
}
|
||||
|
||||
diskEncryptionVolumes := make([]nbpeer.DiskEncryptionVolume, 0)
|
||||
if meta.GetDiskEncryption() != nil {
|
||||
for _, vol := range meta.GetDiskEncryption().GetVolumes() {
|
||||
diskEncryptionVolumes = append(diskEncryptionVolumes, nbpeer.DiskEncryptionVolume{
|
||||
Path: vol.GetPath(),
|
||||
Encrypted: vol.GetEncrypted(),
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
return nbpeer.PeerSystemMeta{
|
||||
Hostname: meta.GetHostname(),
|
||||
GoOS: meta.GetGoOS(),
|
||||
@@ -501,6 +511,9 @@ func extractPeerMeta(ctx context.Context, meta *proto.PeerSystemMeta) nbpeer.Pee
|
||||
LazyConnectionEnabled: meta.GetFlags().GetLazyConnectionEnabled(),
|
||||
},
|
||||
Files: files,
|
||||
DiskEncryption: nbpeer.DiskEncryptionInfo{
|
||||
Volumes: diskEncryptionVolumes,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user