diff --git a/CHANGELOG.adoc b/CHANGELOG.adoc index d742bfda5..ee677ddb5 100644 --- a/CHANGELOG.adoc +++ b/CHANGELOG.adoc @@ -42,6 +42,7 @@ For a detailed view of what has changed, refer to the {uri-repo}/commits/master[ * Removed `mapping.json` file since all the information it would contain can be obtained by checking the `pyrdp_output/filesystems` folder * Added tests for the DeviceRedirectionMITM and FileMapping classes * Log fields changes: `hash` is now `shasum` ({uri-issue}302[#302]) +* Added `clientPort` field to the message when a new client is connected ({uri-issue}310[#310]) === Bug fixes diff --git a/pyrdp/mitm/TCPMITM.py b/pyrdp/mitm/TCPMITM.py index f6e9ffe2c..cd3d6aae9 100644 --- a/pyrdp/mitm/TCPMITM.py +++ b/pyrdp/mitm/TCPMITM.py @@ -78,7 +78,9 @@ def onClientConnection(self): self.connectionTime = time.time() ip = self.client.transport.client[0] - self.log.info("New client connected from %(clientIp)s", {"clientIp": ip}) + port = self.client.transport.client[1] + self.log.info("New client connected from %(clientIp)s:%(clientPort)i", + {"clientIp": ip, "clientPort": port}) def onClientDisconnection(self, reason): """