Log IP addresses of connecting players

This commit is contained in:
Markus Scully 2023-06-05 14:37:59 +02:00
parent 20177fe547
commit 8f2c968403
2 changed files with 2 additions and 1 deletions

View file

@ -9,6 +9,7 @@ class Connection {
this.connections = net.connections;
this.io = net.io;
this.socket = socket;
this.ip = socket.request.connection.remoteAddress;
this.player = new Player(this);
this._room = false;