mirror of
https://gitlab.com/vyla-entertainment/home.git
synced 2026-11-13 21:57:21 -05:00
potentially fixed mac support
This commit is contained in:
@@ -17,13 +17,14 @@ class CryptoUtils {
|
||||
|
||||
let key;
|
||||
try {
|
||||
const isMac = os.platform() === 'darwin';
|
||||
const machineId = [
|
||||
os.hostname(),
|
||||
isMac ? '' : os.hostname(),
|
||||
os.platform(),
|
||||
os.arch(),
|
||||
os.cpus()[0] ? os.cpus()[0].model : '',
|
||||
process.env.COMPUTERNAME || '',
|
||||
process.env.USERNAME || ''
|
||||
process.env.USERNAME || (isMac ? os.userInfo().username : '')
|
||||
].join('|');
|
||||
|
||||
const hash = crypto.createHash('sha256');
|
||||
|
||||
Reference in New Issue
Block a user