mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-04-22 03:24:24 -04:00
Small server discovery fix
This commit is contained in:
parent
fa7abefa01
commit
108faa1ac3
@ -140,11 +140,13 @@ module.exports.CreateMeshScanner = function (parent) {
|
|||||||
// Build the IPv4 response
|
// Build the IPv4 response
|
||||||
var url = (parent.args.notls ? 'ws' : 'wss') + '://%s:' + parent.args.port + '/agent.ashx';
|
var url = (parent.args.notls ? 'ws' : 'wss') + '://%s:' + parent.args.port + '/agent.ashx';
|
||||||
obj.multicastPacket4 = Buffer.from("MeshCentral2|" + obj.agentCertificateHashHex + '|' + url, 'ascii');
|
obj.multicastPacket4 = Buffer.from("MeshCentral2|" + obj.agentCertificateHashHex + '|' + url, 'ascii');
|
||||||
|
if (parent.certificates.CommonName != "un-configured") { url = (parent.args.notls ? 'ws' : 'wss') + '://' + parent.certificates.CommonName + ':' + parent.args.port + '/agent.ashx'; }
|
||||||
obj.multicastPacket4x = Buffer.from("MeshCentral2|" + obj.agentCertificateHashHex + '|' + url + '|' + name + '|' + info, 'ascii');
|
obj.multicastPacket4x = Buffer.from("MeshCentral2|" + obj.agentCertificateHashHex + '|' + url + '|' + name + '|' + info, 'ascii');
|
||||||
|
|
||||||
// Build the IPv6 response
|
// Build the IPv6 response
|
||||||
url = (parent.args.notls ? 'ws' : 'wss') + '://[%s]:' + parent.args.port + '/agent.ashx';
|
url = (parent.args.notls ? 'ws' : 'wss') + '://[%s]:' + parent.args.port + '/agent.ashx';
|
||||||
obj.multicastPacket6 = Buffer.from("MeshCentral2|" + obj.agentCertificateHashHex + '|' + url, 'ascii');
|
obj.multicastPacket6 = Buffer.from("MeshCentral2|" + obj.agentCertificateHashHex + '|' + url, 'ascii');
|
||||||
|
if (parent.certificates.CommonName != "un-configured") { url = (parent.args.notls ? 'ws' : 'wss') + '://' + parent.certificates.CommonName + ':' + parent.args.port + '/agent.ashx'; }
|
||||||
obj.multicastPacket6x = Buffer.from("MeshCentral2|" + obj.agentCertificateHashHex + '|' + url + '|' + name + '|' + info, 'ascii');
|
obj.multicastPacket6x = Buffer.from("MeshCentral2|" + obj.agentCertificateHashHex + '|' + url + '|' + name + '|' + info, 'ascii');
|
||||||
|
|
||||||
setupServers();
|
setupServers();
|
||||||
|
@ -14,7 +14,8 @@
|
|||||||
"_AllowFraming": true,
|
"_AllowFraming": true,
|
||||||
"_WebRTC": false,
|
"_WebRTC": false,
|
||||||
"_ClickOnce": false,
|
"_ClickOnce": false,
|
||||||
"_UserAllowedIP" : "127.0.0.1,::1,192.168.0.100"
|
"_UserAllowedIP": "127.0.0.1,::1,192.168.0.100",
|
||||||
|
"_LocalDiscovery": { "name": "Local server name", "info": "Information about this server" }
|
||||||
},
|
},
|
||||||
"_domains": {
|
"_domains": {
|
||||||
"": {
|
"": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user