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:
@@ -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;
|
||||
Reference in New Issue
Block a user