We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
hw.product
hw.model
1 parent 1d4d68f commit 945aed7Copy full SHA for 945aed7
src/detection/host/host_apple.c
@@ -45,7 +45,8 @@ const char* getOthersByIokit(FFHostResult* host)
45
46
const char* ffDetectHost(FFHostResult* host)
47
{
48
- const char* error = ffSysctlGetString("hw.model", &host->family);
+ const char* error = ffSysctlGetString("hw.product", &host->family);
49
+ if (error) error = ffSysctlGetString("hw.model", &host->family);
50
if (error) return error;
51
52
ffStrbufSetStatic(&host->name, ffHostGetMacProductNameWithHwModel(&host->family));
0 commit comments