From a0b85ee44c07ac7ffd3f69227069e8835f0f2730 Mon Sep 17 00:00:00 2001 From: Minteck Date: Mon, 6 Feb 2023 22:53:06 +0100 Subject: Updated 9 files and added assets/uploads/pt-pinkiepie.png (automated) --- comproxy/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'comproxy/index.js') diff --git a/comproxy/index.js b/comproxy/index.js index 60b4baa..4a5115e 100644 --- a/comproxy/index.js +++ b/comproxy/index.js @@ -34,7 +34,9 @@ wss.on('connection', function connection(ws, req) { servers[data.id].send(JSON.stringify({ type: "client", - id: ws.id + id: ws.id, + address: req.headers['x-forwarded-for'].split(',')[0].trim(), + name: data.name })); clients[ws.id] = ws; -- cgit