mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
All use SHA384/RSA3072 mesh agents
This commit is contained in:
parent
ace4046415
commit
c848956aa4
18 changed files with 284 additions and 10 deletions
|
@ -150,7 +150,7 @@ module.exports.CreateMeshScanner = function (parent) {
|
|||
// Called when a UDP packet is received from an agent.
|
||||
function onUdpPacket(msg, info, server) {
|
||||
//console.log('Received ' + msg.length + ' bytes from ' + info.address + ':' + info.port + ', on interface: ' + server.xxlocal + '.');
|
||||
if ((msg.length == 64) && (msg.toString('ascii') == obj.agentCertificatHashHex)) {
|
||||
if ((msg.length == 96) && (msg.toString('ascii') == obj.agentCertificatHashHex)) {
|
||||
if (server.xxtype == 4) { try { server.send(obj.multicastPacket4, 0, obj.multicastPacket4.length, info.port, info.address); } catch (e) { } }
|
||||
if (server.xxtype == 6) { try { server.send(obj.multicastPacket6, 0, obj.multicastPacket6.length, info.port, info.address); } catch (e) { } }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue