diff options
author | Minteck <contact@minteck.org> | 2023-02-06 22:53:06 +0100 |
---|---|---|
committer | Minteck <contact@minteck.org> | 2023-02-06 22:53:06 +0100 |
commit | a0b85ee44c07ac7ffd3f69227069e8835f0f2730 (patch) | |
tree | 4edc61c5a642915b55b8f9a12b4213dd5fca4339 /comproxy | |
parent | abd342282b48d742cca1740f76d220037fd13800 (diff) | |
download | pluralconnect-a0b85ee44c07ac7ffd3f69227069e8835f0f2730.tar.gz pluralconnect-a0b85ee44c07ac7ffd3f69227069e8835f0f2730.tar.bz2 pluralconnect-a0b85ee44c07ac7ffd3f69227069e8835f0f2730.zip |
Updated 9 files and added assets/uploads/pt-pinkiepie.png (automated)
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; |