We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 218761d commit c5f6c2bCopy full SHA for c5f6c2b
1 file changed
lib/realtime.js
@@ -632,7 +632,7 @@ function connection(socket) {
632
//create user data
633
users[socket.id] = {
634
id: socket.id,
635
- address: socket.handshake.address,
+ address: socket.handshake.headers['x-forwarded-for'] || socket.handshake.address,
636
'user-agent': socket.handshake.headers['user-agent'],
637
color: color,
638
cursor: null,
0 commit comments