diff options
Diffstat (limited to 'comproxy')
-rw-r--r-- | comproxy/index.js | 4 |
1 files changed, 3 insertions, 1 deletions
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; |