mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-11-22 22:17:31 +03:00
APF/MPS fix.
This commit is contained in:
parent
bd61bfe2d0
commit
47db002aaf
@ -641,6 +641,12 @@ module.exports.CreateApfServer = function (parent, db, args) {
|
||||
}
|
||||
}
|
||||
|
||||
obj.SetupCiraChannelToHost = function (host, targetport) {
|
||||
var apfconn = obj.apfConnections[host];
|
||||
if (apfconn == null) return null;
|
||||
return obj.SetupCiraChannel(apfconn, targetport);
|
||||
}
|
||||
|
||||
obj.SetupCiraChannel = function (socket, targetport) {
|
||||
var sourceport = (socket.tag.nextsourceport++ % 30000) + 1024;
|
||||
var cirachannel = { targetport: targetport, channelid: socket.tag.nextchannelid++, socket: socket, state: 1, sendcredits: 0, amtpendingcredits: 0, amtCiraWindow: 0, ciraWindow: 32768 };
|
||||
|
@ -867,7 +867,7 @@ module.exports.CreateMpsServer = function (parent, db, args, certificates) {
|
||||
}
|
||||
|
||||
obj.SetupCiraChannelToHost = function (host, targetport) {
|
||||
var ciraconn = obj.parent.mpsserver.ciraConnections[host];
|
||||
var ciraconn = obj.ciraConnections[host];
|
||||
if (ciraconn == null) return null;
|
||||
return obj.SetupCiraChannel(ciraconn, targetport);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user