fix webrelay not creating new tunnels #7113
Signed-off-by: si458 <simonsmith5521@gmail.com>
si458 committed
Jun 19, 2025 at 15:12 UTC
cadc0d03d287c297ccf6513d3ab16435eb27fd18
1 file changed
+1
-1
apprelays.js
+1
-1
@@ -149,7 +149,7 @@ module.exports.CreateWebRelaySession = function (parent, db, req, args, domain,
149
// Check to see if any of the tunnels are free
150
var count = 0;
151
for (var i in tunnels) {
152
- count += ((tunnels[i].isWebSocket || tunnels[i].isStreaming) ? 0 : 1);
152
+ count += ((tunnels[i].isWebSocket || tunnels[i].isStreaming || (tunnels[i].res != null)) ? 0 : 1);
153
if ((tunnels[i].relayActive == true) && (tunnels[i].res == null) && (tunnels[i].isWebSocket == false) && (tunnels[i].isStreaming == false)) {
154
// Found a free tunnel, use it
155
const x = pendingRequests.shift();