improve on connection logging
This commit is contained in:
1 parent
8add016b60
commit
565bf7d9b5
2 files changed
+2
-1
No files matched your search
@@ -23,6 +23,7 @@ export default class TCPServer extends EventEmitter implements NetworkServer {
|
||||
}
|
||||
|
||||
private onConnection(socket: Socket) {
|
||||
this.logger.Info(`New TCP connection from ${socket.remoteAddress}`);
|
||||
var client = new TCPClient(socket);
|
||||
this.clients.push(client);
|
||||
this.emit('connect', new User(client, IPDataManager.GetIPData(client.getIP()), this.Config));
|
||||
|
||||
Reference in new issue
Block a user