1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-15 07:43:50 +00:00

Fixed windows installer for 32 bit

This commit is contained in:
Bryan Roe
2022-01-21 10:32:15 -08:00
parent 6eab5afe39
commit e4c4d39a92
4 changed files with 113 additions and 81 deletions

View File

@@ -111,5 +111,31 @@ function locked(uri)
}
return (null);
}
function checkMSH()
{
var value = module.exports(process.execPath);
if (value != null) { value = module.exports.locked(value.url); }
if(value!=null)
{
var msh = _MSH();
if(msh!=null)
{
if(msh.MeshServer && msh.ServerID)
{
var res1 = require('http').parseUri(msh.MeshServer);
if(res1!=null)
{
if(res1.host.toLowerCase() != value.dns.toLowerCase() || msh.ServerID.toLowerCase() != value.id.toLowerCase())
{
throw ('Server Configuration MISMATCH');
}
}
}
}
}
}
module.exports = read;
module.exports.locked = locked;
module.exports.locked = locked;
module.exports.checkMSH = checkMSH;