Back in Sep 22, 2020 I provided a pull request:
socketip of user incorrect behind a proxy
For a while now I've been using:
ev.emit("newsocket", socket.client.id, socket.request.headers);
Instead of:
ev.emit("newsocket", socket.client.id, socket.request.headers['x-real-ip'] || socket.request.headers['x-forwarded-for'] || socket.request.connection.remoteAddress);
This way I can get more information from the client
I've tried to add a check box to add option for full header but I just don't understand how the dashboard code works ..... how io.on socket.on .... I get lost.
I'll keep doing it the way I do now.