diff options
Diffstat (limited to 'src/TcpSocket.cpp')
-rw-r--r-- | src/TcpSocket.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/TcpSocket.cpp b/src/TcpSocket.cpp index c05eace..3ebe73c 100644 --- a/src/TcpSocket.cpp +++ b/src/TcpSocket.cpp @@ -248,8 +248,10 @@ TCPConnection::TCPConnection(TcpSocket&& sock) : m_sender_thread(), m_sock(move(sock)) { + auto own_addr = m_sock.getOwnAddress(); auto addr = m_sock.getRemoteAddress(); - etiLog.level(debug) << "New TCP Connection from " << + etiLog.level(debug) << "New TCP Connection on port " << + own_addr.getPort() << " from " << addr.getHostAddress() << ":" << addr.getPort(); m_sender_thread = std::thread(&TCPConnection::process, this); } @@ -293,8 +295,11 @@ void TCPConnection::process() } } + + auto own_addr = m_sock.getOwnAddress(); auto addr = m_sock.getRemoteAddress(); - etiLog.level(debug) << "Dropping TCP Connection from " << + etiLog.level(debug) << "Dropping TCP Connection on port " << + own_addr.getPort() << " from " << addr.getHostAddress() << ":" << addr.getPort(); } |