Skip to content

Commit

Permalink
Merge pull request #1190 from mountaindude/1183
Browse files Browse the repository at this point in the history
fix(host-info): Correctly handle cases where there is no MAC addr ava…
  • Loading branch information
mountaindude authored Jul 3, 2024
2 parents db22e47 + 3aa250e commit e933a8e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/globals.js
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,8 @@ class Settings {
} else {
idSrc = this.config.get('Butler.configQRS.host') + siSystem.uuid;
}
const salt = siMem.total;
// Add underscore to salt to make sure it's a string
const salt = `${siMem.total}_`;
const hash = crypto.createHmac('sha256', salt);
hash.update(idSrc);
id = hash.digest('hex');
Expand Down

0 comments on commit e933a8e

Please sign in to comment.