Commit 56f88fe267a9a301e6e96f556a86d7558f61accc
1 parent
d2691041e6
Exists in
master
matrix.machineid_hashed
Showing 1 changed file with 5 additions and 2 deletions Side-by-side Diff
matrix.js
1 | 1 | "use strict"; |
2 | 2 | |
3 | 3 | const simpleGit = require('simple-git'); |
4 | -const macaddress = require('macaddress'); | |
4 | +//const macaddress = require('macaddress'); | |
5 | 5 | const machineid = require('node-machine-id'); |
6 | 6 | const sha1 = require('sha1'); |
7 | 7 | |
... | ... | @@ -22,6 +22,7 @@ simpleGit(process.cwd()).raw( |
22 | 22 | } |
23 | 23 | ) |
24 | 24 | |
25 | +/* | |
25 | 26 | macaddress.one(function(err, mac) { |
26 | 27 | if (err) return; |
27 | 28 | |
... | ... | @@ -29,7 +30,9 @@ macaddress.one(function(err, mac) { |
29 | 30 | }) |
30 | 31 | |
31 | 32 | matrix.host_id.machineid = machineid.machineIdSync(); |
32 | - | |
33 | 33 | matrix.host_id_hash = sha1('KOMODO' + matrix.host_id.machineid + matrix.host_id.mac); |
34 | +*/ | |
35 | + | |
36 | +matrix.machineid_hashed = sha1('KOMODO' + machineid.machineIdSync()); | |
34 | 37 | |
35 | 38 | module.exports = matrix; |