mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-12 16:15:20 +02:00
Log server connection to actionstream (#16505)
This commit is contained in:
@@ -153,6 +153,14 @@ void Client::handleCommand_AuthAccept(NetworkPacket* pkt)
|
||||
Send(&resp_pkt);
|
||||
|
||||
m_state = LC_Init;
|
||||
|
||||
// Log meaningful info
|
||||
if (!m_internal_server) {
|
||||
Address remote = m_con->GetPeerAddress(PEER_ID_SERVER);
|
||||
actionstream << "Connected to " << m_address_name << " (";
|
||||
remote.print(actionstream);
|
||||
actionstream << ")" << std::endl;
|
||||
}
|
||||
}
|
||||
|
||||
void Client::handleCommand_AcceptSudoMode(NetworkPacket* pkt)
|
||||
|
Reference in New Issue
Block a user