diff --git a/core/main.js b/core/main.js index 93167181d..dad6b21de 100644 --- a/core/main.js +++ b/core/main.js @@ -105,14 +105,11 @@ module.exports = function({ router }) { }, 0); } - dev.log( - 'Found session password in meta.txt set to: ' + - sessionMeta.session_password - ); - - global.session_password = hashCode( - sessionMeta.session_password - ); + const pass = sessionMeta.session_password.trim(); + + dev.log('Found session password in meta.txt set to: ' + pass); + + global.session_password = hashCode(pass); } portscanner .findAPortNotInUse(