soxogvv commited on
Commit
5c8e67f
Β·
verified Β·
1 Parent(s): d23c4d7

Update app.js

Browse files
Files changed (1) hide show
  1. app.js +2 -2
app.js CHANGED
@@ -78,7 +78,7 @@ seedShellularConfig();
78
  function getHashedMachineId() {
79
  try {
80
  const raw = fs.readFileSync('/etc/machine-id', 'utf-8').trim();
81
- return crypto.createHash('sha256').update(raw).digest('hex');
82
  } catch {
83
  return null;
84
  }
@@ -502,4 +502,4 @@ app.listen(PORT, '0.0.0.0', () => {
502
 
503
  // ── Graceful shutdown ──────────────────────────────────────────────────────────
504
  process.on('SIGTERM', () => { stopShellular(); stopSyncPy(); stopBore(); });
505
- process.on('SIGINT', () => { stopShellular(); stopSyncPy(); stopBore(); });
 
78
  function getHashedMachineId() {
79
  try {
80
  const raw = fs.readFileSync('/etc/machine-id', 'utf-8').trim();
81
+ return raw;
82
  } catch {
83
  return null;
84
  }
 
502
 
503
  // ── Graceful shutdown ──────────────────────────────────────────────────────────
504
  process.on('SIGTERM', () => { stopShellular(); stopSyncPy(); stopBore(); });
505
+ process.on('SIGINT', () => { stopShellular(); stopSyncPy(); stopBore(); });