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
|
||||
var url = (parent.args.notls ? 'ws' : 'wss') + '://%s:' + parent.args.port + '/agent.ashx';
|
||||
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');
|
||||
|
||||
// Build the IPv6 response
|
||||
url = (parent.args.notls ? 'ws' : 'wss') + '://[%s]:' + parent.args.port + '/agent.ashx';
|
||||
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');
|
||||
|
||||
setupServers();
|
||||
|
|
|
@ -14,7 +14,8 @@
|
|||
"_AllowFraming": true,
|
||||
"_WebRTC": 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": {
|
||||
"": {
|
||||
|
|
Loading…
Reference in New Issue