From d7fe87d1db0a3f9d7ad26179f03e06b8a4108c15 Mon Sep 17 00:00:00 2001 From: si458 Date: Thu, 13 Feb 2025 21:39:15 +0000 Subject: [PATCH] fix sessionrecording ip addresses wrong way round Signed-off-by: si458 --- meshrelay.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meshrelay.js b/meshrelay.js index 4a9e0b5f..e17d9ca5 100644 --- a/meshrelay.js +++ b/meshrelay.js @@ -452,8 +452,8 @@ function CreateMeshRelayEx(parent, ws, req, domain, user, cookie) { userid: sessionUser._id, username: sessionUser.name, sessionid: obj.id, - ipaddr1: (obj.req == null) ? null : obj.req.clientIp, - ipaddr2: ((obj.peer == null) || (obj.peer.req == null)) ? null : obj.peer.req.clientIp, + ipaddr1: ((obj.peer == null) || (obj.peer.req == null)) ? null : obj.peer.req.clientIp, + ipaddr2: (obj.req == null) ? null : obj.req.clientIp, time: new Date().toLocaleString(), protocol: (((obj.req == null) || (obj.req.query == null)) ? null : obj.req.query.p), nodeid: (((obj.req == null) || (obj.req.query == null)) ? null : obj.req.query.nodeid)