fix sessionrecording ip addresses wrong way round

Signed-off-by: si458 <simonsmith5521@gmail.com>

si458 committed Feb 13, 2025 at 21:39 UTC d7fe87d1db0a3f9d7ad26179f03e06b8a4108c15
1 file changed +2 -2
meshrelay.js
+2 -2
@@ -452,8 +452,8 @@ function CreateMeshRelayEx(parent, ws, req, domain, user, cookie) {
452 userid: sessionUser._id,
453 username: sessionUser.name,
454 sessionid: obj.id,
455 - ipaddr1: (obj.req == null) ? null : obj.req.clientIp,
456 - ipaddr2: ((obj.peer == null) || (obj.peer.req == null)) ? null : obj.peer.req.clientIp,
455 + ipaddr1: ((obj.peer == null) || (obj.peer.req == null)) ? null : obj.peer.req.clientIp,
456 + ipaddr2: (obj.req == null) ? null : obj.req.clientIp,
457 time: new Date().toLocaleString(),
458 protocol: (((obj.req == null) || (obj.req.query == null)) ? null : obj.req.query.p),
459 nodeid: (((obj.req == null) || (obj.req.query == null)) ? null : obj.req.query.nodeid)