mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-07-19 13:38:50 -04:00
fix webrelay not creating new tunnels #7113
Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
parent
c6d8428725
commit
cadc0d03d2
@ -149,7 +149,7 @@ module.exports.CreateWebRelaySession = function (parent, db, req, args, domain,
|
|||||||
// Check to see if any of the tunnels are free
|
// Check to see if any of the tunnels are free
|
||||||
var count = 0;
|
var count = 0;
|
||||||
for (var i in tunnels) {
|
for (var i in tunnels) {
|
||||||
count += ((tunnels[i].isWebSocket || tunnels[i].isStreaming) ? 0 : 1);
|
count += ((tunnels[i].isWebSocket || tunnels[i].isStreaming || (tunnels[i].res != null)) ? 0 : 1);
|
||||||
if ((tunnels[i].relayActive == true) && (tunnels[i].res == null) && (tunnels[i].isWebSocket == false) && (tunnels[i].isStreaming == false)) {
|
if ((tunnels[i].relayActive == true) && (tunnels[i].res == null) && (tunnels[i].isWebSocket == false) && (tunnels[i].isStreaming == false)) {
|
||||||
// Found a free tunnel, use it
|
// Found a free tunnel, use it
|
||||||
const x = pendingRequests.shift();
|
const x = pendingRequests.shift();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user