From b423a8f3e431de29f93171a3e3dbcc3d51bf9c02 Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Fri, 7 May 2021 09:41:00 -0700 Subject: [PATCH] Relay fix. --- meshrelay.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/meshrelay.js b/meshrelay.js index e1818f80..a27b4318 100644 --- a/meshrelay.js +++ b/meshrelay.js @@ -536,13 +536,6 @@ function CreateMeshRelayEx(parent, ws, req, domain, user, cookie) { parent.trafficStats.relayIn[this._socket.p] += (this._socket.bytesRead - this._socket.bytesReadEx); parent.trafficStats.relayOut[this._socket.p] += (this._socket.bytesWritten - this._socket.bytesWrittenEx); - // Check the protocol in use - req.query.p = parseInt(req.query.p); - if (typeof req.query.p != 'number') { req.query.p = parseInt(obj.peer.req.query.p); if (typeof req.query.p != 'number') { req.query.p = 0; } } - obj.peer.req.query.p = req.query.p; - - - if (this.peer != null) { //if (typeof data == 'string') { console.log('Relay: ' + data); } else { console.log('Relay:' + data.length + ' byte(s)'); } if (this.peer.slowRelay == null) {