Relay fix.
Ylian Saint-Hilaire committed
May 7, 2021 at 09:41 UTC
b423a8f3e431de29f93171a3e3dbcc3d51bf9c02
1 file changed
-7
meshrelay.js
-7
@@ -536,13 +536,6 @@ function CreateMeshRelayEx(parent, ws, req, domain, user, cookie) {
536
parent.trafficStats.relayIn[this._socket.p] += (this._socket.bytesRead - this._socket.bytesReadEx);
537
parent.trafficStats.relayOut[this._socket.p] += (this._socket.bytesWritten - this._socket.bytesWrittenEx);
538
539
- // Check the protocol in use
540
- req.query.p = parseInt(req.query.p);
541
- 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; } }
542
- obj.peer.req.query.p = req.query.p;
543
-
544
-
545
-
539
if (this.peer != null) {
540
//if (typeof data == 'string') { console.log('Relay: ' + data); } else { console.log('Relay:' + data.length + ' byte(s)'); }
541
if (this.peer.slowRelay == null) {