mirror of
https://github.com/Yonle/bostr.git
synced 2025-09-20 06:30:37 +02:00
bouncer: logger: log when user initialized first command
Signed-off-by: Yonle <yonle@lecturify.net>
This commit is contained in:
@@ -79,6 +79,7 @@ module.exports = (ws, req, onClose) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!ws.relays.size && !sessStarted) {
|
if (!ws.relays.size && !sessStarted) {
|
||||||
|
console.log(process.pid, `>>>`, `${ws.ip} executed ${data[1]} command for the first. Initializing session`);
|
||||||
newsess(ws);
|
newsess(ws);
|
||||||
sessStarted = true;
|
sessStarted = true;
|
||||||
}
|
}
|
||||||
@@ -115,6 +116,7 @@ module.exports = (ws, req, onClose) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!ws.relays.size && !sessStarted) {
|
if (!ws.relays.size && !sessStarted) {
|
||||||
|
console.log(process.pid, `>>>`, `${ws.ip} executed ${data[1]} command for the first. Initializing session`);
|
||||||
newsess(ws);
|
newsess(ws);
|
||||||
sessStarted = true;
|
sessStarted = true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user