|
|
|
@ -792,9 +792,16 @@ namespace transport
@@ -792,9 +792,16 @@ namespace transport
|
|
|
|
|
{ |
|
|
|
|
if (!error) |
|
|
|
|
{ |
|
|
|
|
LogPrint (eLogInfo, "Connected from ", conn->GetSocket ().remote_endpoint()); |
|
|
|
|
boost::system::error_code ec; |
|
|
|
|
auto ep = conn->GetSocket ().remote_endpoint(ec); |
|
|
|
|
if (!ec) |
|
|
|
|
{ |
|
|
|
|
LogPrint (eLogInfo, "Connected from ", ep); |
|
|
|
|
conn->ServerLogin (); |
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|
LogPrint (eLogError, "Connected from error ", ec.message ()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (error != boost::asio::error::operation_aborted) |
|
|
|
@ -809,9 +816,16 @@ namespace transport
@@ -809,9 +816,16 @@ namespace transport
|
|
|
|
|
{ |
|
|
|
|
if (!error) |
|
|
|
|
{ |
|
|
|
|
LogPrint (eLogInfo, "Connected from ", conn->GetSocket ().remote_endpoint()); |
|
|
|
|
boost::system::error_code ec; |
|
|
|
|
auto ep = conn->GetSocket ().remote_endpoint(ec); |
|
|
|
|
if (!ec) |
|
|
|
|
{ |
|
|
|
|
LogPrint (eLogInfo, "Connected from ", ep); |
|
|
|
|
conn->ServerLogin (); |
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|
LogPrint (eLogError, "Connected from error ", ec.message ()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (error != boost::asio::error::operation_aborted) |
|
|
|
|
{ |
|
|
|
|