1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-09-30 19:22:14 +00:00

Log server connection to actionstream (#16505)

This commit is contained in:
sfan5 2025-09-22 18:46:07 +02:00 committed by GitHub
parent 20f8eb9a6c
commit d5ddee6cbf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)