mirror of
https://github.com/netbirdio/libdetectcloud.git
synced 2026-05-22 17:09:55 -07:00
add hypervisor detection
This commit is contained in:
+1
-1
@@ -52,7 +52,7 @@ func BIOSInfo() (*BIOS, error) {
|
||||
}
|
||||
for h, s := range hypervisors {
|
||||
for _, i := range s {
|
||||
re, err := regexp.Compile(`(?igm).*` + i + `.*`)
|
||||
re, err := regexp.Compile(`(?igm)` + i)
|
||||
if err != nil {
|
||||
return b, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user