From b0b3d98c9e71c7beaf21a646311aca908fdb2361 Mon Sep 17 00:00:00 2001 From: Yonle Date: Mon, 18 Mar 2024 20:56:21 +0700 Subject: [PATCH] log: tell to logger if an IP is now known as something. Signed-off-by: Yonle --- bouncer.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bouncer.js b/bouncer.js index 3e2b3b0..143fb6c 100644 --- a/bouncer.js +++ b/bouncer.js @@ -220,6 +220,8 @@ function getOrphanSess(ws) { orphanSess.delete(ws.id); csess.set(ws.id, ws); + if (log_about_relays) console.log(process.pid, "---", ws.ip, "is now using session", ws.id); + newsess(); }