Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9cdcd2d

Browse filesBrowse files
committed
Issue #267: Enable Logging of connected clients ip address and port on log level info
1 parent fa0b63e commit 9cdcd2d
Copy full SHA for 9cdcd2d

File tree

1 file changed

+2
-0
lines changed
Filter options

1 file changed

+2
-0
lines changed

‎lib/rpc/server.cc

Copy file name to clipboardExpand all lines: lib/rpc/server.cc
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ struct server::impl {
5656
acceptor_.async_accept(socket_, [this](std::error_code ec) {
5757
if (!ec) {
5858
LOG_INFO("Accepted connection.");
59+
auto ep = socket_.remote_endpoint();
60+
LOG_INFO("Connected client: {}:{}", ep.address(), ep.port());
5961
auto s = std::make_shared<server_session>(
6062
parent_, &io_, std::move(socket_), parent_->disp_,
6163
suppress_exceptions_);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.