Skip to content

Commit

Permalink
Drop Linux kernel info entirely
Browse files Browse the repository at this point in the history
Realistically this isn't going to be useful, and it unnecessarily
segments a very small part of the userbase so risks individualizable
fingerprints (non-major-distro Linux users).
  • Loading branch information
pimterry committed Dec 31, 2024
1 parent f9fec02 commit 9a78f5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/device.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,13 @@ async function getLinuxOsDetails() {

return {
platform: osRelease['ID'] || osRelease['NAME'] || 'linux',
release: majorMinorOnly(osRelease['VERSION_ID'] || os.release())
release: majorMinorOnly(osRelease['VERSION_ID']) || 'Unknown'
};
} catch (e) {
logError(`Failed to detect Linux version: ${e.message}`);
return {
platform: 'linux',
release: majorMinorOnly(os.release())
release: 'Unknown'
};
}
}
Expand Down

0 comments on commit 9a78f5c

Please sign in to comment.