summaryrefslogtreecommitdiff
path: root/comproxy
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2023-02-06 22:53:06 +0100
committerMinteck <contact@minteck.org>2023-02-06 22:53:06 +0100
commita0b85ee44c07ac7ffd3f69227069e8835f0f2730 (patch)
tree4edc61c5a642915b55b8f9a12b4213dd5fca4339 /comproxy
parentabd342282b48d742cca1740f76d220037fd13800 (diff)
downloadpluralconnect-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.js4
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;